can strip every character excluding the first 2?
so
qwerty (would show qw) 54gggdgdgddter (would show 54)
$string = 'qwertyui'; $substring = $string{0} . $string{1}; echo $substring;
www.php.net/substr
You should read the manual next time :-)
$string = "abcdef" $string = substr($string, 0, 2);
thats what forums are for!
Originally posted by samgeorge thats what forums are for!
No it's not.
how could i exclude numbers e.g.
U-14 would show U-14
as badgers would only show Ba ??
Take a look at preg_match.
Specifically, the \d escape sequence.