![]() |
[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 |
|
met php:
ligt eraan, vertegenwoordig je die lijst met een array? Dan de functie 'in_array' |
|
thx!
en in Java? |
Vooruit ik start een of andere schrale Java builder op, hold on
|
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.