Hi,
I am creating a news system which relies on data coming from a flatfile database. At first I started with the format
text1 | text2 | text3
I then outputted this to an array with
?
$fp=fopen(\"news.txt\", \"r\");
$arr=fgets($fp, 1024);
fclose($fp);
$arr = explode(\"|\", $arr);
?>
However, each of my individual texts has a lot of information, and so they wrap onto a second line. This then means that some of the items do not display when I echo them.
I need to adapt the above (i.e. change the explode statement) so that I can use the format
text1
text2
text3
explode(\"/n\") didnt work, what will?
Thanks