note 15006 modified in function.array-multisort by aidan

From: Date: Sun, 03 Oct 2004 11:00:13 +0000
Subject: note 15006 modified in function.array-multisort by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77818@lists.php.net to get a copy of this message
If you're having problems with array_multisort changing variables in global space when it is called inside a function and you're not passing in the function parameters by reference you can alleviate the problem by calling array_multisort with its parameters by reference. array_multisort(&$a, SORT_DESC, &$b); More details here in my bug report: http://www.php.net/bugs.php?id=12936 --was-- if you're having problems with array_multisort changing variables in global space when it is called inside a function and you're not passing in the function parameters by reference you can alleviate the problem by calling array_multisort with its parameters by reference, eg, array_multisort(&$a, SORT_DESC, &$b); More details here in my bug report: http://www.php.net/bugs.php?id=12936 http://php.net/manual/en/function.array-multisort.php

« previous php.notes (#77818) next »