Type hinting in PHP allows the identification of the following variable types: (Choose 2)
A. StringWhen retrieving data from URLs, what are valid ways to make sure all file_get_contents calls send a certain user agent string? (Choose 2)
A. $default_opts = array('http'=>array('user_agent'=>"My Cool Browser")); $default = stream_context_set_default($default_opts);What is the output of the following code?
class Number { private $v; private static $sv = 10;
public function __construct($v) { $this->v = $v; }
public function mul() {
return static function ($x) {
return isset($this) ? $this->v*$x : self::$sv*$x;
};
}
}
$one = new Number(1);
$two = new Number(2);
$double = $two->mul();
$x = Closure::bind($double, null, 'Number');
echo $x(5);
A. 5What is "instanceof" an example of?
A. a booleanWhat is the name of the header used to require HTTP authentication?
A. Authorization-RequiredGiven the following DateTime objects, what can you use to compare the two dates and indicate that $date2 is the later of the two dates?
$date1 = new DateTime('2014-02-03');
$date2 = new DateTime('2014-03-02');
A. $date2 > $date1What purpose do namespaces fulfill?
A. EncapsulationWhat is the result of the following code?
class T
{
const A = 42 + 1;
}
echo T::A;
A. 42Which of the following is NOT true about PHP traits? (Choose 2)
A. Multiple traits can be used by a single class.After performing the following operations: $a = array('a', 'b', 'c'); $a = array_keys(array_flip($a)); What will be the value of $a?
A. array('c', 'b', 'a')Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Zend exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 200-710 exam preparations and Zend certification application, do not hesitate to visit our Vcedump.com to find your solutions here.