What is the output of this code?
$world = 'world';
echo <<<'TEXT'
hello $world
TEXT;
When retrieving data from URLs, what are valid ways to make sure all file_get_contents calls send a certain user agent string? (Choose 2)
In a shared hosting environment, session data can be read by PHP scripts written by any user. How can you prevent this? (Choose 2)
Which of the following statements about anonymous functions in PHP are NOT true? (Choose 2)
Which of the following code snippets DO NOT write the exact content of the file "source.txt" to "target.txt"? (Choose 2)
You'd like to use the class MyDBConnection that's defined in the MyGreatFramework\MyGreatDatabaseAbstractionLayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type. What would you do?
PHP's array functions such as array_values() can be used on an object if the object...
Which of the following can NOT be used to send a cookie from within a PHP application?
What is the result of the following bitwise operation in PHP?
1 ^ 2
Given a DateTime object that is set to the first second of the year 2014, which of the following samples will correctly return a date in the format '2014-01-01 00:00:01'?