note 45000 deleted from function.empty by aidan

From: Date: Mon, 23 Aug 2004 06:27:27 +0000
Subject: note 45000 deleted from function.empty by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75147@lists.php.net to get a copy of this message
Note Submitter: luke at hpad dot com ---- /** * @return true if the param is not empty, false if the param is empty */ function blank($v) { $v = trim($v); return empty($v); } This function is useful for validating website form content... Because a string consisting of whitespace will not return true with empty()...

« previous php.notes (#75147) next »