Re: If the first four characters are "0000", then do {}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message ----- From: "John Taylor-Johnston" <John.Taylor-Johnston@xxxxxxxxxxxxxxxxxxxxx>
To: "PHP-General" <php-general@xxxxxxxxxxxxx>
Sent: Tuesday, January 26, 2010 12:36 PM
Subject:  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
}


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux