Registreer FAQ Berichten van vandaag


Ga terug   Scholieren.com forum / Technologie / Software & Hardware
Reageren
 
Topictools Zoek in deze topic
Oud 08-11-2004, 17:00
bulbanos
Avatar van bulbanos
bulbanos is offline
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 citaat reageren
Advertentie
Oud 08-11-2004, 17:06
M@rco
Avatar van M@rco
M@rco is offline
http://nl.php.net/function.in-array
__________________
What experience and history teach is this — that people and governments never have learned anything from history, or acted on principles deduced from it.
Met citaat reageren
Oud 08-11-2004, 17:06
Fade of Light
Avatar van Fade of Light
Fade of Light is offline
met php:
ligt eraan, vertegenwoordig je die lijst met een array? Dan de functie 'in_array'
Met citaat reageren
Oud 08-11-2004, 17:43
Verwijderd
www.php.net/ereg
Met citaat reageren
Oud 08-11-2004, 20:11
bulbanos
Avatar van bulbanos
bulbanos is offline
thx!

en in Java?
Met citaat reageren
Oud 08-11-2004, 20:26
Fade of Light
Avatar van Fade of Light
Fade of Light is offline
Vooruit ik start een of andere schrale Java builder op, hold on
Met citaat reageren
Oud 08-11-2004, 20:40
Fade of Light
Avatar van Fade of Light
Fade of Light is offline
Interface Set
public boolean contains(Object_o)

Returns true if this set contains the specified element.
Met citaat reageren
Advertentie
Reageren


Regels voor berichten
Je mag geen nieuwe topics starten
Je mag niet reageren op berichten
Je mag geen bijlagen versturen
Je mag niet je berichten bewerken

BB code is Aan
Smileys zijn Aan
[IMG]-code is Aan
HTML-code is Uit

Spring naar


Alle tijden zijn GMT +1. Het is nu 15:36.