note 2310 deleted from each by ronabop
| From: | ronabop@php.net | Date: | Sun, 03 Sep 2000 09:56:18 +0000 |
| Subject: | note 2310 deleted from each by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4021@lists.php.net to get a copy of this message | ||
I would have found it useful if the example section had concrete examples of how to actually use the
array variables.
eg.
<pre>
foo = array( "Robert" => "Bob", "Seppo" => "Sepi" );
$bar = each( $foo );
echo "key = $bar[key] .... value = $bar[value] ";
</pre>
followed by a note saying what would be printed as a result. Don't make people have to type
examples in to see what they print. That's no help to people reading printed versions of
documentation.
/ndy
ps. the extra echo command prints
"key = Robert .... value = Bob"