I have the following code:
explode("delimiter", $snippet);
But I want that my delimiter is case-insensitive.
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.
Just use
preg_split()and pass the flagifor case-insensitivity:Also make sure your delimiter which you pass to
preg_split()doesn’t cotain any sepcial regex characters. Otherwise make sure you escape them properly or usepreg_quote().