- implode: documentation ( source)
<?php
class strings {
function fix_string($a)
{
echo implode("",$a);
}
function fix_strings($b) {
foreach ($b as $item) {
$this->fix_string($item);
}
}
}
$s = new strings();
$ret = $s->fix_strings(array('Derick','der','dere'));
?>