nerdexam
Zend

200-530 · Question #492

Consider the following string: Zend 200-530 Exam ZeNd php After running a PHP script, the above string is converted in the following format: php dnez Which of the following PHP scripts have you run?

The correct answer is D. <?php $string1= "ZeNd php"; $string1= strtolower($string1); echo strrev($string1); ?>. See the full explanation below for the reasoning.

Question

Consider the following string: Zend 200-530 Exam ZeNd php After running a PHP script, the above string is converted in the following format: php dnez Which of the following PHP scripts have you run?

Options

  • A<?php $string1= "ZeNd php"; $string1= str_to_lower($string1); echo strev($string1);
  • B<?php $string1= "ZeNd php"; $string1= strtolower($string1); echo stringrev($string1);
  • C<?php $string1= "ZeNd php"; $string1= trim($string1); echo stringrev($string1); ?>
  • D<?php $string1= "ZeNd php"; $string1= strtolower($string1); echo strrev($string1); ?>

How the community answered

(29 responses)
  • A
    14% (4)
  • B
    3% (1)
  • C
    7% (2)
  • D
    76% (22)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice