note 72438 added to language.operators.assignment
| From: | umbrae at gmail dot com | Date: | Thu, 18 Jan 2007 19:36:42 +0000 |
| Subject: | note 72438 added to language.operators.assignment | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121900@lists.php.net to get a copy of this message | ||
@jeronimo
I don't know why you'd ever want to do that though - you save two lines of code but you
have to create a list, create an array, and then junk them at the end. It's a waste of CPU
time, and my computations show that it's almost twice as slow as just doing a regular swap.
(0.004088 versus 0.008747, 10000 times)
I know it's a major nitpick, but to save one line of code it seems like a waste of time. (No
pun intended)
----
Server IP: 64.71.164.2
Probable Submitter: 38.98.105.130
----
Manual Page -- http://www.php.net/manual/en/language.operators.assignment.php
Edit -- https://master.php.net/note/edit/72438
Del: integrated -- https://master.php.net/note/delete/72438/integrated
Del: useless -- https://master.php.net/note/delete/72438/useless
Del: bad code -- https://master.php.net/note/delete/72438/bad+code
Del: spam -- https://master.php.net/note/delete/72438/spam
Del: non-english -- https://master.php.net/note/delete/72438/non-english
Del: in docs -- https://master.php.net/note/delete/72438/in+docs
Del: other reasons-- https://master.php.net/note/delete/72438
Reject -- https://master.php.net/note/reject/72438
Search -- https://master.php.net/manage/user-notes.php