I've been trying to echo a new line character but it hasn't worked. Each time I loop I would like to add break after each iteration.
foreach($result as $row){
$node = '{"author":"' . $row["name"] . '"},';
echo "\n";
}
This is what I have but it's still printing all in one line. Any Suggestions?
`. with that `\n` and it will show it to you on screen as well. `\n` alone only shows up as a new line if writing to a file. – Funk Forty Niner Nov 05 '15 at 19:49