![]() |
Using the 'in' operator with multi dimensional arrays
Hi all, I am working on an events system and want to use multi dimensional arrays but that standard "in" operator doesn't work like that, how else would I be able to check if the event name is correct?
PHP Code:
|
Quote:
|
Yeah well if there wasn't a simple way to do that then I think it's best to have an array the names, /thread
|
If you want to keep them in the same array do something like this:
PHP Code:
|
All times are GMT +2. The time now is 03:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.