Scholieren.com forum

Scholieren.com forum (https://forum.scholieren.com/index.php)
-   Software & Hardware (https://forum.scholieren.com/forumdisplay.php?f=20)
-   -   [PHP] 'isin' commando? (https://forum.scholieren.com/showthread.php?t=1007550)

bulbanos 08-11-2004 17:00

[PHP] 'isin' commando?
 
Bestaat er in PHP zoiets als een isin commando? (Ik heb die uit het Wiskundig pakket Maple waar het wel bestaat)
Stel je hebt een lijst met nummers zoals
lijst= {1,4,6,43,55};
en je zegt
if (variabele isin lijst) then blaat


en bestaat zoiets in Java?

Ik vind die dus niet op php.net noch op java.sun.com

M@rco 08-11-2004 17:06

http://nl.php.net/function.in-array

Fade of Light 08-11-2004 17:06

met php:
ligt eraan, vertegenwoordig je die lijst met een array? Dan de functie 'in_array'

Triloxigen 08-11-2004 17:43

www.php.net/ereg

bulbanos 08-11-2004 20:11

thx!

en in Java?

Fade of Light 08-11-2004 20:26

Vooruit ik start een of andere schrale Java builder op, hold on

Fade of Light 08-11-2004 20:40

Interface Set
public boolean contains(Object_o)

Returns true if this set contains the specified element.


Alle tijden zijn GMT +1. Het is nu 07:53.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.