[Solved] striping a URL
Posted: Wed Apr 23, 2008 4:16 pm
I need to return the NewsID numeric value of 60 from this string mysite/details.php?NewsId=60&sweetid=2791992
I have to use $_GET["returnurl"] ; to return the url but Iām really not sure what is the best way to strip this string to just find the value of ā60ā especially as this number could grow to 100's or more digits as the cart grows.
Can anyone suggest what I can do and what is the best way to strip this without problems later on?
Thank you
I have to use $_GET["returnurl"] ; to return the url but Iām really not sure what is the best way to strip this string to just find the value of ā60ā especially as this number could grow to 100's or more digits as the cart grows.
Can anyone suggest what I can do and what is the best way to strip this without problems later on?
Thank you