[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] nemt php spørgsmål



On Wed, Jan 26, 2005 at 11:28:23PM +0100, Kristian Nørgaard wrote:
> Hvordan tester man på eksistensen af et heltal i en mængde af heltal?
> 
> Der må da være en eller anden måde at skrive noget a la
> 
> $i = 4;
> $numbers = array(1,3,5,6,7);
> if ($i in $numbers){
> 	...
> 	do something
> 	...
> }
> 
> men den køber fortolkeren ikke.
> Svaret er sikkert banalt, men...

Manualen er et godt sted at starte:

<http://dk.php.net/in_array>

-- 
Med venlig hilsen
- Jacob Atzen


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *