Hi all.
With any php script, I cannot get "\n" to work eg :
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
ini_set('html_errors', false);
// Simple array:
$array = array(1, 2);
$count = count($array);
for ($i = 0; $i < $count; $i++) {
echo "\nChecking $i: \n";
echo "Bad: " . $array['$i'] . "\n";
echo "Good: " . $array[$i] . "\n";
echo "Bad: {$array['$i']}\n";
echo "Good: {$array[$i]}\n";
}
?>
Outputs everything on to the one line, except when it runs out of length. Even "\r\n" fails.
Am running PHP Version 4.4.0-4 with Apache 2 under Linux (2.4.26).
TIA,
David