note 32648 added to function.strcmp

From: Date: Tue, 03 Jun 2003 19:42:39 +0000
Subject: note 32648 added to function.strcmp
Groups: php.notes 
Request: Send a blank email to php-notes+get-49649@lists.php.net to get a copy of this message
What is the command to get 1 character out of a string? i.e., i want to check the 4th digit of a number (in string form) against a list of possibilities. $MyString = "2033" $LastDigit = ? if ($LastDigit == "3") { ... } ---- Manual Page -- http://www.php.net/manual/en/function.strcmp.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32648 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32648&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32648&report=yes

« previous php.notes (#49649) next »