Re: array
| From: | peppe | Date: | Thu, 11 Dec 2003 16:21:15 +0000 |
| Subject: | Re: array | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-31998@lists.php.net to get a copy of this message | ||
Hi
Pete I forgot to write that $acces is a field from Db and there are values
1,2,3,4
a need to split those values to make that IF
Brettking thanx mate I think that is a solution
"Brettking" <brett@gforces.co.uk> wrote in message
news:JEENJKKPLFELGOFAGFNPIEPBCAAA.brett@gforces.co.uk...
>
> Hi
>
> From what I can work out you need to use a function called
> in_array(value,array);
> http://www.php.net/manual/en/function.in-array.php here is the
> php manual
> link
>
> Hope this is what you want
> Brett
> -----Original Message-----
> From: peppe [mailto:peppe1001@hotmail.com]
> Sent: 11 December 2003 16:07
> To: php-db@lists.php.net
> Subject: [PHP-DB] array
>
>
> Hi
> I have a variable cold $access and there are values 1,2,3,4,5
> How can I check for example
> If ($access =='2'){
> echo "go further";
> }
> How can I make this work
> Thanx in advance
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> Email has been scanned for viruses by www.emf-systems.com