Vidyalelo
PHP · Q19

Regular Expressions

Programming · PHP · question 19

Q19

What will be the output of the following PHP code?

A.
Contact the author of this article at nachiketh@[email protected]
B.
Cont@ct the @uthor of this @rticle @t n@chiketh@[email protected]
C.
Contact the author of this article at n@chiketh@[email protected]
Answer
D.
Error

Answer: Option C

Solution

Answer: Option C
Solution:
The str_replace() function case sensitively replaces all instances of a string with another.