By complex variables, I mean comparing a user variable with a PHP variable like $_FILES.
I need to determine if a variable sent to an object method is the entire $_FILES var or if the user has sent some portion of the $_FILES var.
I was thinking of using something simple like:
But I wanted to verify that this will actually determine if the two are equal in every way. Some testing seems to indicate that this is the case, but I was just wondering if anyone happens to know for a fact.
TIA,
Itshim
I need to determine if a variable sent to an object method is the entire $_FILES var or if the user has sent some portion of the $_FILES var.
I was thinking of using something simple like:
Code:
if ($upload_input == $_FILES) {
//do something
}
But I wanted to verify that this will actually determine if the two are equal in every way. Some testing seems to indicate that this is the case, but I was just wondering if anyone happens to know for a fact.
TIA,
Itshim