Right now im using strstr but it needs to be "if the string starts with 172 ...
I can't find anything. In Vb.net it's "if str.startswith =
Printable View
Right now im using strstr but it needs to be "if the string starts with 172 ...
I can't find anything. In Vb.net it's "if str.startswith =
You could use the substr function and check if the first 3 characters are "172"
http://uk.php.net/substr
yeah, vb6's "str.startswith" was pretty much just a class implementing substring.
php coders aint that dumb, so dont need it. Just use substr as this whacked faced manavo said