I'm trying to get the first element of a value returned by a function ..
== example == function return_Array() { return ('one', 'zwei', 'kolm', 'vier'); }
print return_Array()[0]; ==/ example ==
Now i'd like this script to print 'one' for me .. can it be done without creating a temporary variable?
No, use a temporary variable.
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php