This is basic programming question. I’m a PHP developer, but this is open for everyone also.
If i use
if(something == something){ // do something }
Would that be slower to run than
if(something == something) // do something
because when you have braces the compiler checks if there might be another if statement or a loop inside it?
O/P : ‘2 not equals 3’
Look at the above example and its output even if you dnt use braces compiler still have to check if there is another if statement.