Re: array in email

From: Date: Sun, 30 Dec 2001 07:43:43 +0000
Subject: Re: array in email
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79058@lists.php.net to get a copy of this message
the mail function looks like : mail($to,$subject,$body) ("in a simplistic manner") you can use $to="mail@mail.com"; $subject="test"; for ($i=0;i<count(a)/*your array*/;$i++) $body.=a[i]; //and then, of course mail($to,$subject,$body); -- Best regards, George Nicolae IT Manager ___________________ X-Playin - Professional Web Design www.x-playin.f2s.com "Jordan" <newimagedesign@newimagedesign.com> wrote in message news:20011230061325.8088.qmail@pb1.pair.com... > I've searched the archive but can't seem to find anything on the mail() > function of PHP. I've got the whole function working in a simplistic manner > but I can't do one thing. How is it possible to print arrays inside the > body of the message. I can't seem to run a loop or anything and all I have > are session variables to use. Thanks in advance for the help. > > -Jordan > >

« previous php.general (#79058) next »