Please provide the name of the super-global variable where all the information about cookies is available.
What can prevent PHP from being able to open a file on the hard drive (Choose 2)?
Given a PHP value, which sample shows how to convert the value to JSON?
Is the following code vulnerable to SQL Injection ($mysqli is an instance of the MySQLi class)?
$age = $mysqli->real_escape_string($_GET['age']);
$name = $mysqli->real_escape_string($_GET['name']);
$query = "SELECT * FROM `table` WHERE name LIKE '$name' AND age = $age";
$results = $mysqli->query($query);
Which PHP function retrieves a list of HTTP headers that have been sent as part of the HTTP response or are ready to be sent?
Before the headers are sent, how can you remove a previously set header?
What is the output of the following code?
class Foo Implements ArrayAccess {
function offsetExists($k) { return true;}
function offsetGet($k) {return 'a';}
function offsetSet($k, $v) {}
function offsetUnset($k) {}
}
$x = new Foo();
echo array_key_exists('foo', $x)?'true':'false';
When a class is defined as final it:
Which value will be assigned to the key 0 in this example?
$foo = array(true, '0' => false, false => true);
PDF + Testing Engine
|
---|
$66 |
Testing Engine
|
---|
$50 |
PDF (Q&A)
|
---|
$42 |
Zend Free Exams |
---|
![]() |