how can I generate some array...?

I have some variable in array..
but I dont know how to generate the result....

here is my code

$data = array(
'id' => '01',
'name' => 'my name',
'content' => array('one', 'two', 'three')
if I generate those code with foreach.. the result is

01my nameArray

any tips..? :roll:

If you generate what? Some code that produces that result would be handy.

My guess is that you're looping over the array and echoing the value. That's not going to work with array's, you can't echo those (as you have noticed).
So if your array is multi-dimensional, you have to check if the value is an array, and if so, loop over that too...

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.