I have a string that has different values on each line:
$matches=\"value1 value2 value3 value4 value5 \";
I want to explode the whole strin
You need to change '\n' to "\n".
'\n'
"\n"
From PHP.net:
If the string is enclosed in double-quotes ("), PHP will interpret more escape sequences for special characters: \n linefeed (LF or 0x0A (10) in ASCII) More...
If the string is enclosed in double-quotes ("), PHP will interpret more escape sequences for special characters:
\n linefeed (LF or 0x0A (10) in ASCII) More...