Re: If the first four characters are "0000", then do {}
| From: | Angus Mann | Date: | Tue, 26 Jan 2010 02:47:22 +0000 |
| Subject: | Re: If the first four characters are "0000", then do {} | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301444@lists.php.net to get a copy of this message | ||
----- Original Message ----- From: "John Taylor-Johnston" <John.Taylor-Johnston@cegepsherbrooke.qc.ca>
To: "PHP-General" <php-general@lists.php.net>
Sent: Tuesday, January 26, 2010 12:36 PM
Subject: [PHP] If the first four characters are "0000", then do {}
I am reading the manual: http://ca.php.net/manual/en/ref.strings.php $mydata->restored = "0000-00-00"; How do I express this? If the first four characters are "0000", then do {} What I am looking for is in strpos(), no? if (????????????) { }if (substr($mydata,0,4) == "0000"{ Do stuff }