Re: [PHP] Help with a home-grown function

2005-07-26 Thread Matthew Weier O'Phinney
* "Ford, Mike" <[EMAIL PROTECTED]> : > On 21 July 2005 22:19, Chris W. Parker wrote: > > > 2. It will be a good idea to get out of the habit of breaking in and > > out of PHP like that. Instead just do: echo 'hi1'; > > Why? Some of us just strongly prefer the breaking in and out style -- I use > i

RE: [PHP] Help with a home-grown function

2005-07-26 Thread Ford, Mike
On 21 July 2005 22:19, Chris W. Parker wrote: > 2. It will be a good idea to get out of the habit of breaking > in and out > of PHP like that. Instead just do: echo 'hi1'; Why? Some of us just strongly prefer the breaking in and out style -- I use it almost exclusively. In my 10,000s of lines o

Re: [PHP] Help with a home-grown function

2005-07-22 Thread André Medeiros
On Thu, 2005-07-21 at 13:37 -0700, Dan Trainor wrote: > Hello, all - > > I've been looking around for a function that would tell me if a $value > in a $key=>$value array was empty, and I could not find one. So I > decided to make my own. Even if I am re-inventing the wheel, I thought > that the

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Chris W. Parker wrote: > Dan Trainor > on Thursday, July 21, 2005 2:03 PM said: > > >>I never see "hi" even if an array is set as such: >> >>$vars = array("one","two","three","four","five"); > > > That's because your function always returns true. If it finds a mis

RE: [PHP] Help with a home-grown function

2005-07-21 Thread Chris W. Parker
Dan Trainor on Thursday, July 21, 2005 2:03 PM said: > I never see "hi" even if an array is set as such: > > $vars = array("one","two","three","four","five"); That's because your function always returns true. If it finds a missing value it returns true. If it doesn

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Dan Trainor wrote: > Mike Johnson wrote: > >>From: Dan Trainor [mailto:[EMAIL PROTECTED] >> >> >> >>>Hello, all - >>> >>>I've been looking around for a function that would tell me if a $value >>>in a $key=>$value array was empty, and I could not find one. So I >>>decided to make my own. Even if

Re: [PHP] Help with a home-grown function

2005-07-21 Thread Dan Trainor
Mike Johnson wrote: > From: Dan Trainor [mailto:[EMAIL PROTECTED] > > >>Hello, all - >> >>I've been looking around for a function that would tell me if a $value >>in a $key=>$value array was empty, and I could not find one. So I >>decided to make my own. Even if I am re-inventing the wheel, >

RE: [PHP] Help with a home-grown function

2005-07-21 Thread Mike Johnson
From: Dan Trainor [mailto:[EMAIL PROTECTED] > Hello, all - > > I've been looking around for a function that would tell me if a $value > in a $key=>$value array was empty, and I could not find one. So I > decided to make my own. Even if I am re-inventing the wheel, > I thought that the practic