Any difference between these 2 forms of syntax?
| From: | Richard Davey | Date: | Sat, 11 May 2002 00:54:43 +0000 |
| Subject: | Any difference between these 2 forms of syntax? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97052@lists.php.net to get a copy of this message | ||
Hi,
I am wondering if there is any tangible difference between the following two
commands:
$x = $foo["status"];
$x = $foo['status'];
The part in question being the use of ' or " around the "status" element of
the array $foo.
Both have the same end result in my case, I'm just purely wondering which is
the correct form of syntax to use?
Cheers,
Rich
--
Fatal Design
http://www.fatal-design.com
Atari / DarkBASIC / Coding / Since 1995