I was trying to make a function con convert an array in a string value, the code is:
function makestring($array)
{
$outval = '';
foreach($array as $key=>$value)
{
if(is_array($value))
{
$outval .= makestring($value);
}
else
{
$outval .= $value;
}
}
return $outval;
}
But I get this error: Warning: Invalid argument supplied for foreach(). Can anybody please help me?
$arrayis really anArrayor not and not an empty