Hello again,
I'm writing a script to store PHP snippets into a database. One problem I'm looking at right now is that I'm loosing the TABS from my scripts. They are nicely stored in the database and I can also retrieve them in my script. The problem I'm facing is that I can't get my script to print the tabs back to the browser. I tried the following:
foreach ($snip_code as $dd){
$c_test = 1;
$cnt = 0;
$cnt = substr_count($dd, "\t");
while ($c_test <= $cnt){
echo "\t";
$c_test++;
}
echo $dd . "<BR>";
$cnt = 0;
The tabs are there, $cnt contains the correct count for \n every time. However I can't find a way to echo them back to the browser. This is probably something extremely obvious I'm missing but I couldn't find it in the manual .
Cheers,
Henk