Originally posted by Jaey:
I know in JavaScript you have the handy 'charAt()' and 'indexOf()' functions... is there something like that in php? It would help me A LOT.
Thanks.
$dest = substr ($yourstring, startingat, howmanychars);
e.g.
$name = "Simon Mundy"
$name = substr($name,0,5);
echo $name;
prints "Simon";
Spend some time at
www.php.net reading and re-reading the documentation if you get the chance - every time I visit I still learn something new, or find a better way to do things.