woops :-)
function toList ( $array ) {
$temp = '';
foreach ( $array AS $item ) {
if ( is_array ( $item ) ) {
$temp .= ''.toList ( $array ).'';
} else {
$temp .= ''.$item.'';
}
}
return ''.$temp.'' ;
}
$array = array ( 10 , 20 , array ( 30 , 40 ) );
echo toList (
How about this:
function toList ( $array ) {
$temp = '';
foreach ( $array AS $item ) {
if ( is_array ( $item ) ) {
$temp .= ''.toList ( $array ).'';
} else {
$temp .= ''.$item.'';
}
}
return $temp ;
}
$array = array ( 10 , 20 , arra
2 matches
Mail list logo