Basic PHP What will be the output of the following PHP code?$score = 1234;$scoreboard = (array) $score;echo $scoreboard[0]; 1234 Error 1 2 1234 Error 1 2 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP The value of __NAMESPACE__ is a string that contains the current namespace name. In global, un-namespaced code, it contains . . . . . . an empty string gibberish value NULL 0 an empty string gibberish value NULL 0 ANSWER DOWNLOAD EXAMIANS APP
Basic PHP String values must be enclosed in ...... both A and B double quotes none of above single quotes both A and B double quotes none of above single quotes ANSWER DOWNLOAD EXAMIANS APP
Basic PHP What will be the output of the following PHP code?$team = "arsenal";switch ($team) {case "manu":echo "I love man u";case "arsenal":echo "I love arsenal";case "manc":echo "I love manc"; } I love arsenal I love arsenalI love mancI love manu I love arsenalI love manc Error I love arsenal I love arsenalI love mancI love manu I love arsenalI love manc Error ANSWER DOWNLOAD EXAMIANS APP
Basic PHP Which of the following PHP statements will output Hello World on the screen?1. echo (“Hello World”);2. print (“Hello World”);3. printf (“Hello World”);4. sprintf (“Hello World”); 1, 2 and 3 All of the mentioned 1, 2 and 4 1 and 2 1, 2 and 3 All of the mentioned 1, 2 and 4 1 and 2 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 being declared as passed by reference Never When the function contains only one parameter When the parameter is Boolean When the function is being declared as a member of a class When the parameter is being declared as passed by reference Never When the function contains only one parameter When the parameter is Boolean ANSWER DOWNLOAD EXAMIANS APP