I saw this recently on some PHP scripts and I can't figure out why the guy who wrote them used this syntax:
if(isset($_POST['something']) === true)
I mean, I know what "===" means (same value & same type), but why did he used it? It is somehow more eficient / secure than just
if(isset($_POST['something']))or is just a programmer prefference?
Any response will be highly appreciated

New Topic/Question
Reply




MultiQuote






|