Re: [PHP] in_array w/statement

2004-12-16 Thread Sebastian
To: <[EMAIL PROTECTED]> Sent: Thursday, December 16, 2004 3:39 PM Subject: Re: [PHP] in_array w/statement > On Friday 17 December 2004 02:33, Sebastian wrote: > > > I cannot solve this problem,. sorry if this looks confusing,. > > It is ... > > > i have a form

Re: [PHP] in_array w/statement

2004-12-16 Thread Matt M.
> reason it seems to always be true, ... something i'm doing wrong? btw, i > cannot add the in_array to the statement because if the $buddylist is empty > it will generate errors because of the empty implode. you could add the is_array() check. > $buddylist = preg_split('/( )+/', trim($userinfo['

Re: [PHP] in_array w/statement

2004-12-16 Thread Jason Wong
On Friday 17 December 2004 02:33, Sebastian wrote: > I cannot solve this problem,. sorry if this looks confusing,. It is ... > i have a form and don't want to set the variable if the in_array is true.. > the code works, up until i add the last !$buddy in the statement, for some > reason it seems

[PHP] in_array w/statement

2004-12-16 Thread Sebastian
Hi, I cannot solve this problem,. sorry if this looks confusing,. i have a form and don't want to set the variable if the in_array is true.. the code works, up until i add the last !$buddy in the statement, for some reason it seems to always be true, ... something i'm doing wrong? btw, i cannot add