New Line on PHP CLI
Use double quotes "
.
echo "next line\n";
Additional you can use the system-dependent constant PHP_EOL
echo "this is my text" . PHP_EOL;
Escape sequences are only parsed when inside double quotes, not single quotes.
http://php.net/manual/en/language.types.string.php
Use double quotes instead. "
.