Re: String check
| From: | 1LT John W. Holmes | Date: | Tue, 30 Apr 2002 12:11:24 +0000 |
| Subject: | Re: String check | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95367@lists.php.net to get a copy of this message | ||
if(substr($string,0,3) == "123")
{ //do some stuff }
---John Holmes...
----- Original Message -----
From: "David Orn Johannsson" <david@atom.is>
To: <php-general@lists.php.net>
Sent: Tuesday, April 30, 2002 8:03 AM
Subject: [PHP] String check
Is ther any function that I could use to check if a string beguins wiht
a certin set of numbers, like
if string starts_w "324" {
do some stuff;
}
Regards, David
<http://www.atom.is/> ------------------------
Davíð Örn Jóhannssson
Vefforritari
------------------------
Atómstöðin hf.
Garðastræti 37
101 Reykjavík
------------------------
sími: 595-3643
fax: 595-3649
<mailto:david@atom.is> david@atom.is
<http://www.atom.is/> http://www.atom.is
------------------------