Array element from function return

From: Date: Sun, 24 Aug 2003 15:24:00 +0000
Subject: Array element from function return
Groups: php.general 
Request: Send a blank email to php-general+get-160588@lists.php.net to get a copy of this message
Hi, 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? Thanks, Wouter

« previous php.general (#160588) next »