note 84253 added to language.references.pass

From: Date: Sat, 05 Jul 2008 15:38:10 +0000
Subject: note 84253 added to language.references.pass
Groups: php.notes 
Request: Send a blank email to php-notes+get-141196@lists.php.net to get a copy of this message
function test1(&$par){ //reference used $foo = strlen($par); } function test2($par){ $foo = strlen($par); } // create 1MB long string $s = str_repeat(' ', 1e6); for($i=0; $i<1000; $i++) test1($s); // takes roughly seconds for($i=0; $i<1000; $i++) test2($s); // takes roughly 0.1 seconds ---- Server IP: 147.32.160.17 Probable Submitter: 81.201.48.25 ---- Manual Page -- http://www.php.net/manual/en/language.references.pass.php Edit -- https://master.php.net/note/edit/84253 Del: integrated -- https://master.php.net/note/delete/84253/integrated Del: useless -- https://master.php.net/note/delete/84253/useless Del: bad code -- https://master.php.net/note/delete/84253/bad+code Del: spam -- https://master.php.net/note/delete/84253/spam Del: non-english -- https://master.php.net/note/delete/84253/non-english Del: in docs -- https://master.php.net/note/delete/84253/in+docs Del: other reasons-- https://master.php.net/note/delete/84253 Reject -- https://master.php.net/note/reject/84253 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141196) next »