Q:

What will be the output of the following PHP code?

0

What will be the output of the following PHP code?

<?php
    $author = "nachiketh@example.com";
    $author = str_replace("a","@",$author);
    echo "Contact the author of this article at $author.";
    ?>

  1. Contact the author of this article at [email protected]@mple.com
  2. [email protected]t the @uthor of this @rticle @t [email protected]@[email protected]
  3. Contact the author of this article at [email protected]@[email protected]
  4. Error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(c).Contact the author of this article at [email protected]@[email protected]

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

PHP STRINGS AND REGULAR EXPRESSIONS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What will be the output of the following PHP code?... >>
<< Which one of the following functions finds the las...