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
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){
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
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
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
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
<[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) {
>
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
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
9 matches
Mail list logo