|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-02-09 01:31 UTC] aharvey@php.net
-Status: Open
+Status: Wont fix
[2012-02-09 01:31 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 21:00:01 2025 UTC |
Description: ------------ if (empty($var)){ ... } this has an impression that we are trying freeing up $var and making it 'NULL' it sound like 'DoEmpty()' or 'SetEmpty()' but what this function realy is: isEmpty() the script should looks like this: if(isempty($var)){ ... } because IMHO 'do','set' and 'let' are optional prefixes, which let you understand that this function is an order (a command) but not the prefix 'is' which is if we can say a test prefix.