strcmp() in PHP
Iโm currently working my way through the games at Over The Wire. I came across a challenge where I needed strcmp() to return 0, since it was being used to match a password.ย
So I went and looked up the function and came across this website.
There are a few ways to get a false match, but most were out of the scope of the challenge, since I was sending strings. If I could send an array that would be great, but I couldnโt figure out how to do that.
Thatโs where this blog came in. Just a simple set of brackets made the variable send as if it was an array. Yes, there was an error, but it still passed the if statement.ย
So to send an empty array through your browser:
domain.com/?var1[]=















