basically i just want to get all the text after the _ .
i have tried
$productid = split("_",$PagePath, 1);
with no success what is the correct way of doing this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use explode instead of split. The result of explode is an array, so use
list():Note the third parameter, 2 instead of 1. Using 1 will not split anything. Or, just use
preg_replace: