Which of the following prints ‘text/xml’?

  1. print substr($text, strchr($text, ':'));

  2. print substr($text, strchr($text, ':') 1);

  3. print substr($text, strpos($text, ':') 1);

  4. print substr($text, strpos($text, ':') 2);


Correct Option: D

Find more quizzes: