Zend 200-530 - Zend PHP 5.3 Certification Exam

Page:    1 / 51   
Total 254 questions

You'd like to use the class MyDBConnection that's defined in the
MyGreatFrarnework\GreafDatabaseAbstractionLayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type. What would you do?

  • A. Import the MyGreatFramework namespace
  • B. Import the MyGreatFrarnework\GreafDatabaseAbstractionLayer namespace
  • C. Alias MyGreatFrarnework\GreafDatabaseAbstractionLayer\MyDBConnection to a shorter name
  • D. Alias MyGreatFrarnework\GreafDatabaseAbstractionLayer to a shorter name


Answer : B

Explanation: This removes the need to prefix the class with the namespace name. You can refer to the class simply as MyDBConnection.

Which PHP function sets a cookie whose value does not get URL encoded when sending it to the browser?



Answer : setrawcookie()

What will be the result of the following operation?
array_combine(array("A","B","C"), array(1,2,3));

  • A. array("A","B",C",1,2,3)
  • B. array(1,2,3,"A","B",C")
  • C. array("A"=>1,"B"=>2,"C"=>3)
  • D. array(1=>"A",2=>"B",3=>"C")
  • E. array(1,2,3)


Answer : C

You want to extract the pieces of a date string, which looks like this: "2005-11-02". Which of the following pieces of code will property assign $year, $month and $day with their respective values?

  • A. sscanf("2005-11-02", '%d-%d-%d', $year, $month, $day);
  • B. scan("2005-11-02", '%d-%d-%d', $year, $month, $day);
  • C. sscanf('%d-%d-%d', "2005-11-02", $year, $month, $day);
  • D. sscan($year, $month, $date '%d-%d-%d', "2005-11-02");


Answer : A

What is the output of the following code?



Answer : 2

Page:    1 / 51   
Total 254 questions