note 93087 added to language.oop5
| From: | canyonatexample dot com at osu1 dot php dot net | Date: | Sat, 22 Aug 2009 07:05:20 +0000 |
| Subject: | note 93087 added to language.oop5 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159785@lists.php.net to get a copy of this message | ||
to redrik at gmail dot com
Thanks for this, your code force to recalculate $args in each iteration, it would be more fine to
calculate before, like this:
$args = func_get_args();
$n=count($args);
for( $i=0; $i<$n; $i++ )
$this->add($args[$i]);
instead of this one:
$args = func_get_args();
for( $i=0, $n=count($args); $i<$n; $i++ )
$this->add($args[$i]);
Cordially.
----
Server IP: 69.147.83.197
Probable Submitter: 90.14.47.191
----
Manual Page -- http://www.php.net/manual/en/language.oop5.php
Edit -- https://master.php.net/note/edit/93087
Del: integrated -- https://master.php.net/note/delete/93087/integrated
Del: useless -- https://master.php.net/note/delete/93087/useless
Del: bad code -- https://master.php.net/note/delete/93087/bad+code
Del: spam -- https://master.php.net/note/delete/93087/spam
Del: non-english -- https://master.php.net/note/delete/93087/non-english
Del: in docs -- https://master.php.net/note/delete/93087/in+docs
Del: other reasons-- https://master.php.net/note/delete/93087
Reject -- https://master.php.net/note/reject/93087
Search -- https://master.php.net/manage/user-notes.php