note 15006 deleted from function.array-multisort by cmb
| From: | cmb@php.net | Date: | Sun, 29 Sep 2019 07:47:45 +0000 |
| Subject: | note 15006 deleted from function.array-multisort by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212421@lists.php.net to get a copy of this message | ||
Note Submitter: kat dot n0spam at audiogalaxy dot com
----
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