(Note by @SOFe: Using PHP_EOL is very wrong! See @AshBull's post below) You use PHP_EOL or also know as 'End Of Line' symbol to get this. Using PHP_EOL once won't get your goal, but with str_repeat you can repeat PHP_EOL as much as you want PHP: // EXAMPLEstr_repeat('HI', 5);// Prints: HIHIHIHIHI
PHP_EOL varies based on the system hosting the server, use TextFormat::EOL instead for sending to the client