if(substr($string,0,3) == "123")
{ //do some stuff }

---John Holmes...

----- Original Message -----
From: "David Orn Johannsson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]> [EMAIL PROTECTED]
 <http://www.atom.is/> http://www.atom.is
------------------------




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

Reply via email to