This is driving me nuts, it keeps returning 0
substr_count('df
d
fd
f
df', '\n');
if I use a letter like “d”, it works fine
substr_count('df
d
fd
f
df', 'd');
Can anyone shed some light on this?
Thanks
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.
You need to use double quotes for control characters: