PHP Call to undefined function

This was a developer mistake – a misplaced ending brace, which made the above function a nested function. I see a lot of questions related to the undefined function error in SO. Let me note down this as an answer, in case someone else have the same issue with function scope. Things I tried to … Read more

PHP & Case Sensitivity 

Why is PHP partially case senstive? I can only speculate that this stems from very early versions, probably PHP/FI 2.0. The manual explicitely states: Keep in mind that PHP/FI function names are not case sensitive. Most user input, such as GET and POST parameters, has always been registered as global variables, back then. Treating these as case … Read more

In where shall I use isset() and !empty()

isset vs. !empty FTA: “isset() checks if a variable has a value including (False, 0 or empty string), but not NULL. Returns TRUE if var exists; FALSE otherwise. On the other hand the empty() function checks if the variable has an empty value empty string, 0, NULL or False. Returns FALSE if var has a … Read more