PHP Test 1 Can i have new line in $subject tag of php mail function? No Yes by specifying /n How do we access the value of 'c' later? $a = array( 'a', 3 => 'b', 'c' ); $a[0] $a[1] $a[2] $a[3] What will be displayed in a browser when the following PHP code is executed: function changeValue(&$y) { $y = $y + 5; } $myNumber = 8; changeValue($myNumber); echo $myNumber; 12 13 8 None of the above Which of the following is NOT a magic predefined constant? __DATE__ __LINE__ __CLASS__ __FILE__ function in php returns a list of response headers send(or ready to send). headers_list() header() header_send() header_list() What will be printed? $a = array(); if ($a == null) { echo 'true'; } else { echo 'false'; } true false What will be printed if (null === false) { echo 'true'; } else { echo 'false'; } there is a syntax error false true What joomla in php? Framework and distribution system for reusable PHP components. Framework for designing dynamic pages. Set of library enriched with functions. An open source CMS. What is the output? $RESULT = 11 + 011 + 0x11; echo "$RESULT"; (A) 37 (B) 33 (C) 22 (D) 11 11 22 33 37 What will be displayed in a browser when the following PHP code is executed: $variable = 1; switch ($variable) { case 1: echo "Hello World"; default: echo "Hello RAM"; break; } Hello WorldHello RAM Hello RAM Hello World Nothing Will Be Displayed Php support explicit type definition in variable declaration? True False What will be the value of $var below? $var = true ? '1' : false ? '2' : '3'; 3 2 1 How can I create php array in a html? What will be printed? if ('2' == '02') { echo 'true'; } else { echo 'false'; } True False What will be displayed in a browser when the following PHP code is executed: for ($counter = 20; $counter < 10; $counter++){ echo "Hello Rohan"; } echo "Counter is: $counter"; Hello Rohan Hello Rohan Counter is: 22 Counter is: 20 Hello Rohan Hello Rohan Counter is: 22 What will be printed? $var = 'a'; $VAR = 'b'; echo "$var$VAR"; ba ab aa bb Parent constructor are not called if the child class defines a constructor. explicitly implicitly What will be displayed in a browser when the following PHP code is executed: for ($counter = 15; $counter != 10; $counter--){ echo "Hello "; } Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello What is the output? $a = array( null => 'a', true => 'b', false => 'c', 0 => 'd', 1 => 'e', '' => 'f' ); echo count($a), "\n"; 2 3 4 5 What gets printed? class MyException extends Exception {} try { throw new MyException('Oops!'); } catch (Exception $e) { echo "Caught Exception\n"; } catch (MyException $e) { echo "Caught MyException\n"; } Caught Exception Caught MyException Schreibe einen Kommentar Antworten abbrechenDu musst angemeldet sein, um einen Kommentar abzugeben.