PHP Interview Questions and Answers
Prepare for your Interview today!
When the original if was followed by : and then the code block without braces.
Expression preceding the ? is evaluated, if it's true, then the expression preceding the : is executed, otherwise, the expression following : is executed.
E.g $id = isset($_GET['id']) ? $_GET['id'] : false;
func_num_args() function returns the number of parameters passed in.
100, it's a reference to existing variable.
:: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.
Most helpful rated by users: