Re: Printing Array Key Value Pair
| From: | Heikki Korpela | Date: | Thu, 31 Aug 2000 07:57:07 +0000 |
| Subject: | Re: Printing Array Key Value Pair | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14541@lists.php.net to get a copy of this message | ||
David Hall wrote:
> When I try:
> print "Class = $curr_cat["catclass"]"
> I get a syntax errror. Presumably because of some sort of quote issue. I'm
> running PHP3.
print "Class = ".$curr_cat["catclass"];
Or,
$class = $curr_cat["catclass"];
print "Class = $class";
--
| Heikki Korpela | heikki.korpela@wapit.com | tel. +358 50 3838 609 |
| Software Developer, Wapit Finland | http://www.wapit.com |
--
"Ain't working? Umm.. has the operating system been updated?"