strlen() returns the length of the string on success and . . . . if the string is empty. -1 NULL 0 Garbage value TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function a() {<br/>function b() {<br/>echo 'I am b';<br/>}<br/>echo 'I am a';<br/>}<br/>a();<br/>a(); Error I am bI am a I am b I am a Error TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function addFunction($num1, $num2) {<br/>$sum = $num1 + $num2;<br/>return $sum;<br/>}<br/>$return_value = addFunction(10, 20);<br/>echo "Returned value from the function : $return_value" Returned value from the function : $return_value Error Returned value from the function : Returned value from the function : 30 TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following functions can be used to compress a string? gzcompress() zip_compress() compress() zip() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$var = 10;<br/>function one()<br/>{<br/>echo $var;<br/>}<br/>one(); None of the Mentioned 10 Error No Output TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>echo hex2bin("48656c6c6f20576f726c6421"); This is PHP! welcome to india MCQ questons Hello World! TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$op2 = "blabla";<br/>function foo($op1) {<br/>echo $op1;<br/>echo $op2;<br/>}<br/>foo("hello"); hello helloblablablabla error helloblabla TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following PHP functions can be used to get the current memory usage? get_memory_peak_usage() get_usage() get_memory_usage() get_peak_usage() TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following is the right way of defining a function in PHP? functionName(parameters) { function body } function fumctionName(parameters) { function body } function { function body } data type functionName(parameters) { function body } TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>function do($myString) {<br/>echo strpos($myString, "donkey",0);<br/>}<br/>do("The donkey looks like a horse."); 4 None of the mentioned 5 2 TRUE ANSWER : ? YOUR ANSWER : ?