I'm trying to use substr(); to pick bits of this string:
Code: Select all
$string = 'px0v[b]8400[/b]bns[b]19320[/b]k6ow';Code: Select all
echo substr($string, 4, ;
echo substr($string, 12, 16);I'm probably just being an idiot but I can't figure out how to use this substr command. I've used it before to just know off the last 4 characters in a string but never to pick out bits in the middle.
Please help. I feel stupid asking but I can'tget it to work for some reason?
Thanks