Use double quotes ".
echo "next line\n";
Additional you can use the system-dependent constant PHP_EOL
echo "this is my text" . PHP_EOL;
Use double quotes ".
echo "next line\n";
Additional you can use the system-dependent constant PHP_EOL
echo "this is my text" . PHP_EOL;