note 50648 added to function.session-set-save-handler
| From: | rose dot andrew at gmail dot com | Date: | Sat, 05 Mar 2005 19:38:16 +0000 |
| Subject: | note 50648 added to function.session-set-save-handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-85979@lists.php.net to get a copy of this message | ||
In reference to the session_set_save_handler example; this is really pedantic but instead of using:
return(""); // Must return "" here.
Why not use the faster literal:
return(''); // Must return '' here.
Every clock cycle counts, and more so good coding practice.
----
Manual Page -- http://www.php.net/manual/en/function.session-set-save-handler.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50648
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50648&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50648&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50648&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50648&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50648&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50648&report=yes
Search -- http://master.php.net/manage/user-notes.php