Which of the following super globals does not necessarily contain data from the client?
Which of the following super globals does not necessarily contain data from the client?A . $_POSTB . $_SESSIONC . $_GETD . $ SERVERView AnswerAnswer: B
What is the benefit of using persistent database connections in PHP? (Choose two.)
What is the benefit of using persistent database connections in PHP? (Choose two.)A . Reduces the connection & authentication overhead of connecting to the databaseB . Ensures that only a single connection is open to the database from PHPC . Allows connection settings such as character set encoding to persistD...
Before the headers are sent, how can you remove a previously set header?
Before the headers are sent, how can you remove a previously set header?A . Use the header_remove() function, providing the name of the headerB . Use the die() function to abort the PHP scriptC . Not possibleD . Use the headers_list() function, providing the name of the header as the...
What is the output of the following code?
What is the output of the following code? var_dump(boolval([]));A . bool(true)B . bool(false)View AnswerAnswer: B
Which class of HTTP status codes is used for redirections?
Which class of HTTP status codes is used for redirections?A . 2XXB . 3XXC . 4XXD . 5XXView AnswerAnswer: B
Consider the following two files. When you run test.php, what would the output look like?
Consider the following two files. When you run test.php, what would the output look like? test.php: include "MyString.php"; print","; print strlen("Hello world!"); MyString.php: namespace MyFrameworkString; function strlen($str) { return strlen($str)*2; // return double the string length } print strlen("Hello world!")A . 12,12B . 12,24C . 24,12D . 24,24E . PHP...
Which PHP function is used to validate whether the contents of $_FILES['name']['tmp_name'] have really been uploaded via HTIP, and also save the contents into another folder?
Which PHP function is used to validate whether the contents of $_FILES['name']['tmp_name'] have really been uploaded via HTIP, and also save the contents into another folder?View AnswerAnswer: move_uploaded_file(), move_uploaded_file
When creating your own classes to access data, implementing which of the following would NOT achieve this goal?
SimpleXML provides the ability to iterate over items in an XML document, as well as access items within it as if they were object properties. When creating your own classes to access data, implementing which of the following would NOT achieve this goal?A . _toStringB . IteratorC . _get/ _setD...
What is the output of the following code?
What is the output of the following code? $a= 3; switch ($a) { } case 1: echo 'one'; break; case 2: echo 'two'; break; default: echo 'four'; break; case 3: echo 'three'; break;A . oneB . twoC . threeD . fourView AnswerAnswer: C
What is the output of the following code?
What is the output of the following code? function append($str) { $str = $str.'append'; function prepend(&$str) { $str = 'prepend'.$str; $string= 'zce'; append(prepend($string)); echo $string;A . zceappendB . prependzceappendC . prependzceD . zceView AnswerAnswer: C