Re: Any difference between these 2 forms of syntax?
| From: | php3 at developersdesk dot com | Date: | Sat, 11 May 2002 02:13:58 +0000 |
| Subject: | Re: Any difference between these 2 forms of syntax? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97058@lists.php.net to get a copy of this message | ||
Addressed to: "Richard Davey" <rich@fatal-design.com>
php-general@lists.php.net
** Reply to note from "Richard Davey" <rich@fatal-design.com> Sat, 11 May 2002
01:54:43 +0100
>
> Hi,
>
> I am wondering if there is any tangible difference between the following two
> commands:
>
> $x = $foo["status"];
> $x = $foo['status'];
>
$foo['status']; should be marginaly faster as PHP doesn't have to look
for $ in the value that need to be converted to their values.
Rick
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com