note 54835 added to language.variables.scope

From: Date: Sun, 17 Jul 2005 00:42:29 +0000
Subject: note 54835 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-92063@lists.php.net to get a copy of this message
To the last poster, regarding the speed tests: <?php $a = str_repeat('text', 100); $b = $a; $c =& $a; // $c == $b == $a // But you assigned a different value within the functions: $len = strlen($a); // $len != $a ?> I was bemused; how could the processing times of the functions/no-functions tests be compared in this way? And calling the strlen() function within each iteration of the loop must take more time anyway? ---- Manual Page -- http://www.php.net/manual/en/language.variables.scope.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54835 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54835&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54835&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54835&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54835&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54835&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54835&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54835&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92063) next »