Free 200-550 Exam Braindumps
Zend Certified PHP Engineer Questions 96–100 (page: 21)

Updated On: 9-Feb-2026

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)

  1. $default_opts = array('http'=>array('user_agent'=>"My Cool Browser")); $default = stream_context_set_default($default_opts);
  2. stream_context_set_option("user_agent", "My Cool Browser");
  3. ini_set('user_agent', "My Cool Browser");
  4. stream_context_set_option($context, "http", "user_agent", "My Cool Browser");

Answer(s): A,C



What will an opcode cache ALWAYS automatically improve?

  1. Running time of a loop in a PHP script
  2. Efficiency of HTML markup generated by a PHP script
  3. Execution speed of a PHP script
  4. Memory footprint of a PHP script
  5. None of the above

Answer(s): E



What is cached by an opcode cache?

  1. Compiled PHP code
  2. Native PHP extensions
  3. Data sent to the client
  4. Data received from the database

Answer(s): A



Which php.ini setting is usually required to use an opcode cache?

  1. extension
  2. zend_extension
  3. optimizer
  4. dl

Answer(s): B



What is the output of the following code?
var_dump(boolval(-1));

  1. bool(true)
  2. bool(false)

Answer(s): A



Viewing page 21 of 46
Viewing questions 101 - 105 out of 223 questions


Post your Comments and Discuss Zend 200-550 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!