RE: adding a symbol in front of each line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
I would like to add a > symbol infront of each line I pull out of a
database. 
Similar to the function seen in online e-mail clients when you click on
reply.

Has anybody an idea on how to add a symbol in front of each line?`
[/snip]

Use a '.'

example --

while(!feof($file)){
   $line = fgets($file, 4096);
   $newLine = '>' . $line;
   echo $newLine;
}

HTH!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux