What Will Be The Output Of The Following Php Codep Pre Langphp #159
What will be the output of the following PHP code?</p> <pre><code class="language-php" line="1"> <?php $author = "[email protected]"; $author = str_replace("a","@",$author); echo "Contact the author of this article at $author."; ?> </code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs107 PHP: Hypertext Preprocessor.
It can also be found in
gs gs107 Strings and Regular Expressions - PHP Strings & Regular Expressions - Quiz No.2.
What will be the output of the following PHP code?
<?php $author = "[email protected]"; $author = str_replace("a","@",$author); echo "Contact the author of this article at $author."; ?>
Contact the author of this article at nachiketh@[email protected]
Cont@ct the @uthor of this @rticle @t n@chiketh@[email protected]
Contact the author of this article at n@chiketh@[email protected]
Error