Any other methodes to do this?
#4

Really, just use an array instead of creating twenty separate variables.

PHP код:
in_array(needle, const haystack[], size sizeof haystack, &index 0)
{
    for(new 
isizei++)
    {
        if(
haystack[i] == needle)
        {
            
index i;
            return 
true;
        }
    }
        
    return 
false;

Reply


Messages In This Thread
Any other methodes to do this? - by Eoussama - 07.10.2016, 20:14
Re: Any other methodes to do this? - by EtayJ - 07.10.2016, 20:17
Re: Any other methodes to do this? - by AbyssMorgan - 07.10.2016, 20:35
Re: Any other methodes to do this? - by Vince - 07.10.2016, 20:56
Re: Any other methodes to do this? - by Eoussama - 07.10.2016, 21:12
Re: Any other methodes to do this? - by Vince - 07.10.2016, 21:16
Re: Any other methodes to do this? - by Eoussama - 07.10.2016, 21:45
Re: Any other methodes to do this? - by AndySedeyn - 07.10.2016, 22:05

Forum Jump:


Users browsing this thread: 1 Guest(s)