str_replace query
Posted: Fri Jul 06, 2007 8:02 am
Hey,
I've got a url like this....
dpages/38/test1.php
I want to remove everything from this string so i am left with just: -
38
I know I need to use the str_replace function, but i cant seem to get it working properly...
Is there a simple one liner that can do this... to strip all before, after and including the '/'...
Cheers,
Ash
I've got a url like this....
dpages/38/test1.php
I want to remove everything from this string so i am left with just: -
38
I know I need to use the str_replace function, but i cant seem to get it working properly...
Is there a simple one liner that can do this... to strip all before, after and including the '/'...
Cheers,
Ash