Basic PHP If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed? 5 1 Error 12 5 1 Error 12 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$color = "maroon";$var = $color[2];echo "$var"; Error r a $var Error r a $var ANSWER DOWNLOAD EXAMIANS APP
Basic PHP When a simple data type is casted to an array, an array is created with the original value in the first element. False True False True ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which statement will output $x on the screen? echo “$x;”; echo “$$x”; echo “/$x”; echo “\$x”; echo “$x;”; echo “$$x”; echo “/$x”; echo “\$x”; ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Under what circumstance is it impossible to assign a default value to a parameter while declaring a function? When the function is being declared as a member of a class When the parameter is Boolean When the function contains only one parameter When the parameter is being declared as passed by reference Never When the function is being declared as a member of a class When the parameter is Boolean When the function contains only one parameter When the parameter is being declared as passed by reference Never ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Some PHP code might not have a namespace and therefore lives in the . . . . . . namespace. Automatic PRE Global Default Automatic PRE Global Default ANSWER DOWNLOAD EXAMIANS APP