Re: Perl to PHP (Was XML Parsing)
| From: | Curt Zirzow | Date: | Thu, 17 Jul 2003 20:49:38 +0000 |
| Subject: | Re: Perl to PHP (Was XML Parsing) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155675@lists.php.net to get a copy of this message | ||
Doug La Farge <doug@lafarge.net> wrote:
> [...]
> After that, how would this convert:
>
> $quote{class_name} = $text;
> quote is a hash where class_name is the key.
Php treats arrays and hashes the same, infact there really isn't any
difference with them. so the syntax is always the same for hashes and
arrays (in perl terms).
$quote['class_name'] = $text;
>
> Thanks again!
Curt
--