"Real software engineers work from 9 to 5, because that is the way the job is described in the formal spec. Working late would feel like using an undocumented external procedure."
Voor zover ik je begrijp zou in_array() jou wel van pas kunnen komen.
Sole survivor of the Chicxulub asteroid impact.
array_search 
edit: in_array is beter ja
iig is het handig om de manual te pakken: http://nl3.php.net/manual/en/ref.array.php
edit: in_array is beter ja
iig is het handig om de manual te pakken: http://nl3.php.net/manual/en/ref.array.php
[ Voor 101% gewijzigd door Erkens op 09-08-2005 14:38 ]
Met iets als onderstaand kom je wellicht al een heel eind (wel even controleren):
PHP:
1
2
| if (count(array_intersect(array_keys($user), array_values($access))) // true |
Dat werkt inderdaad perfectsjroorda schreef op dinsdag 09 augustus 2005 @ 14:37:
Met iets als onderstaand kom je wellicht al een heel eind (wel even controleren):
PHP:
1 2 if (count(array_intersect(array_keys($user), array_values($access))) // true
"Real software engineers work from 9 to 5, because that is the way the job is described in the formal spec. Working late would feel like using an undocumented external procedure."