Re: [PHP] foreach statement

2003-03-25 Thread Jim Lucas
die" <[EMAIL PROTECTED]> To: "shaun" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 3:34 PM Subject: RE: [PHP] foreach statement > You don't. > From http://www.php.net/manual/en/control-structures.foreach.php > "Note: forea

RE: [PHP] foreach statement

2003-03-25 Thread Jennifer Goodie
You don't. >From http://www.php.net/manual/en/control-structures.foreach.php "Note: foreach does not support the ability to suppress error messages using '@'." You should check the validity of your argument before passing it to foreach if(is_array($array)){ foreach($array as $key=>$val){

Re: [PHP] foreach statement

2003-03-25 Thread Richard Whitney
Get rid of the error Quoting shaun <[EMAIL PROTECTED]>: ### how do i surpress an error message for a foreach statement? ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend D

RE: [PHP] foreach statement

2002-01-09 Thread Niklas Lampén
You're welcome. :) Niklas P.S. I know... ;) -Original Message- From: Chris Grigor [mailto:[EMAIL PROTECTED]] Sent: 9. tammikuuta 2002 10:23 To: '[EMAIL PROTECTED]'; Php-General Subject: RE: [PHP] foreach statement Thanks!! its working !!! ***BIG SMILE Nik

RE: [PHP] foreach statement

2002-01-09 Thread Chris Grigor
Thanks!! its working !!! ***BIG SMILE Niklas you genious -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 10:15 AM To: Php-General Subject: RE: [PHP] foreach statement Foreach works in PHP just like I told. foreach

RE: [PHP] foreach statement

2002-01-09 Thread Niklas Lampén
D]'; Php-General Subject: RE: [PHP] foreach statement Hey Niklas yea thats what I want, just one thing foreach($emails as $this_is_one_address) { would it be foreach($emails) { or am I missing something in there ? ? mailto:[EMAIL PROTECTED]] Sent: 9. tammikuuta 2002

Re: [PHP] foreach statement

2002-01-08 Thread David Balatero
<[EMAIL PROTECTED]> Sent: Tuesday, January 08, 2002 11.44 PM Subject: RE: [PHP] foreach statement > Hey Niklas > > yea thats what I want, just one thing > > foreach($emails as $this_is_one_address) { > > would it be > > foreach($emails) { >

RE: [PHP] foreach statement

2002-01-08 Thread Chris Grigor
Hey Niklas yea thats what I want, just one thing foreach($emails as $this_is_one_address) { would it be foreach($emails) { or am I missing something in there ? ? mailto:[EMAIL PROTECTED]] Sent: 9. tammikuuta 2002 8:59 To: 'Php-General-List (E-mail)' Subject: [PHP] foreach stat

RE: [PHP] foreach statement

2002-01-08 Thread Niklas Lampén
I think this is what you want to do: mailto:[EMAIL PROTECTED]] Sent: 9. tammikuuta 2002 8:59 To: 'Php-General-List (E-mail)' Subject: [PHP] foreach statement Okay lets see who has there thinking caps on today (cos I really dont) I have a list of email addresses stored in a text file. I am a