/ Published in: PHP
Expand |
Embed | Plain Text
Comments
Subscribe to comments
You need to login to post a comment.
sekihin on 03/26/09
1 person have marked this snippet as a favorite
Subscribe to comments
You need to login to post a comment.
to just print the array items.. just use: echo implode("\n", $fruit);
but there's also another routine designed for this:
foreach ($fruit as $k => $v) { echo "index #" . $k . " = " . $v . "\n"; }