On Tue, 19 Mar 2002, [iso-8859-1] Jan Grafstr�m wrote:
> Hi!
> I have read several tricks of how to remove white spaces but how to create
> them?
>
> I wan�t to build a normal textmail like this:
> $message="
> product items price amount
> book 2 25 50
> cd-rom 3 15 45";
>
> mail($recipient, $subject, $message, $headers);
I'm assuming you are getting the rows from a DB. So looping through the result set and
storing each row in $next_row[], you could use the implode() function:
while(exist_more_results){
$next_row=get_next_row();
$next_mesg_line=substr(implode(" ",$next_row),0,-1)."\n";
$mesg.=$next_mesg_line;
}
cheers,
--t.
>
> How do I write to get the tab spaces?
> --
> Regards
> Jan Grafstr�m
>
> sweden
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php