note 62435 added to control-structures.switch

From: Date: Tue, 28 Feb 2006 17:44:02 +0000
Subject: note 62435 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-104567@lists.php.net to get a copy of this message
Here is a one-line version of what sven at e7o dot de posted to check if a char is lowercase, this more concise version using an if statement: <?php // We'll just assume that $b is already declared, since this would only make sense being dynamic anyways. if(ord($b) >= 97 && ord($b) <= 122) echo 'Yes!'; ?> ---- Server IP: 64.71.164.2 Probable Submitter: 72.34.75.194 (proxied: 10.0.0.26) ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/control-structures.switch.php Edit -- http://master.php.net/note/edit/62435 Del: integrated -- http://master.php.net/note/delete/62435/integrated Del: useless -- http://master.php.net/note/delete/62435/useless Del: bad code -- http://master.php.net/note/delete/62435/bad+code Del: spam -- http://master.php.net/note/delete/62435/spam Del: non-english -- http://master.php.net/note/delete/62435/non-english Del: in docs -- http://master.php.net/note/delete/62435/in+docs Del: other reasons-- http://master.php.net/note/delete/62435 Reject -- http://master.php.net/note/reject/62435 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104567) next »