note 77884 added to function.ksort
| From: | erikjr at gmail dot com | Date: | Tue, 18 Sep 2007 12:06:35 +0000 |
| Subject: | note 77884 added to function.ksort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130565@lists.php.net to get a copy of this message | ||
Just a short note on "don dot hosek at gmail dot com" remark, the ksort returns TRUE or
FALSE and performs its actual operation directly on the array in the function call.
Thus; it would be
<?php
ksort ( $a );
?>
instead of
<?php
$a = ksort ( $a );
?>
as noted in his piece. I didn't understand why my sorting kept returning '1' at
first, but that was it.
----
Server IP: 85.12.26.134
Probable Submitter: 193.173.146.43
----
Manual Page -- http://www.php.net/manual/en/function.ksort.php
Edit -- https://master.php.net/note/edit/77884
Del: integrated -- https://master.php.net/note/delete/77884/integrated
Del: useless -- https://master.php.net/note/delete/77884/useless
Del: bad code -- https://master.php.net/note/delete/77884/bad+code
Del: spam -- https://master.php.net/note/delete/77884/spam
Del: non-english -- https://master.php.net/note/delete/77884/non-english
Del: in docs -- https://master.php.net/note/delete/77884/in+docs
Del: other reasons-- https://master.php.net/note/delete/77884
Reject -- https://master.php.net/note/reject/77884
Search -- https://master.php.net/manage/user-notes.php