RE: [PHP] adding a symbol in front of each line
| From: | Jay Blanchard | Date: | Wed, 17 Nov 2004 14:46:06 +0000 |
| Subject: | RE: [PHP] adding a symbol in front of each line | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-202307@lists.php.net to get a copy of this message | ||
[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!