I have a string and I want to control the content of the string it
contain ( CR, LF or CRLF)or not?
if (no CR, LF or CF or LF) in string:
echo 'no sepator';
else:
echo 'have some separator';
Anyone here could tell me the ways to do this in php
this function checks that input string has any combination of new line characters, or not.
and there’s another version of this function which detects the given string ends with new line characters: