Printing Array Key Value Pair
| From: | David Hall | Date: | Thu, 31 Aug 2000 07:46:19 +0000 |
| Subject: | Printing Array Key Value Pair | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14537@lists.php.net to get a copy of this message | ||
Say for instance I have an array called $curr_cat with a key "catclass".
So then $currcat = array("catclass" => "somevalue")
How do I print the value this array holds in it?
When I try:
Thanks for the newbie help! _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.print "Class = $curr_cat["catclass"]" I get a syntax errror. Presumably because of some sort of quote issue. I'm running PHP3.