after 10 years with php i still S*** in regex , could you please help me converting this
$x_ary=split('&x=',$url);
to the preg_split equivalent ?
Thank you
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.
In most cases you just need to add delimiters:
/are fine if you do not need them as part of the pattern. And none of the other symbols are meta characters, so don’t need escaping.Take note that in your case you could just use
explodeinstead, since you don’t need a regex.