Quote:
Originally Posted by cbk1994
I wonder if you could do something like
PHP Code:
if ((@ array1) == (@ array2)) {
// whatever
}
since @ converts arrays to strings. I know this works for some other stuff, such as "in" or "index".
|
That works, yes, but the problem is that the order of the array elements has to be the same as well. Could sort both of them before checking if they are equal though
