note 80847 rejected from ref.array by ezyang

From: Date: Mon, 04 Feb 2008 04:06:26 +0000
Subject: note 80847 rejected from ref.array by ezyang
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-135751@lists.php.net to get a copy of this message
Note Submitter: Casy ---- Please forgive me for asking a question but this has been bugging me FOREVER! When a function returns an array, how do I access it directly instead of setting a variable to it and accessing the variable? Instead of $a=mysqli_fetch_array($a);return$a[0]; I want to do return mysqli_fetch_array($a)[0]; But PHP has a compile error when I do that x_x

« previous php.notes (#135751) next »