Jump to content

Converting multidiementional array into string


numan82

Recommended Posts

Hi There,

I've a little problem, I am converting the mulitdiementional array into string but facing problem

code as follow

-----

function GettingValue(){

while($row=mysql_fetch_array(result,MYSQL_BOTH))

{

   $Data[$i]['UserID']=$row['UserID'];

   $Data[$i]['UserName']=$row['UserName'];

 

     $i++

}

return $Data;

 

} Now Want to convert this multidiemsional array into the string, I know the implode function but it is not working in my case for example

 

$result=implode("@",$Data);

 

echo $result;

it shows only Array@[email protected]

it is clear that it is nested array but I don't know the way to come out of this little confusion

any help in this regard is highly appreciated.

Thanks!

Numan

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.