subscripting an expression possible?
| From: | Bob Mroczka | Date: | Wed, 17 Apr 2002 17:58:36 +0000 |
| Subject: | subscripting an expression possible? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93358@lists.php.net to get a copy of this message | ||
Is it possible in php4 to retrieve an
array value from an expression that
returns an array without first storing
the resultant array in a temporary variable?
For example, I would like to do something like this:
echo (posix_uname())["nodename"];
Instead of:
$tmp = posix_uname();
echo $tmp["nodename"];
Thanks, Bob