Zend PHP 5.3 Certification 200-530 Question # 28 Topic 3 Discussion

Zend PHP 5.3 Certification 200-530 Question # 28 Topic 3 Discussion

200-530 Exam Topic 3 Question 28 Discussion:
Question #: 28
Topic #: 3

The following code piece should print "PHP is cool", but unexpectedly, it just prints "cool". How would you correct it?

echo str_replace('PHP is a pain.', 'a pain', 'cool');


A.

str_replace('PHP is a pain.', 'cool', 'a pain');


B.

str_replace('a pain', 'cool', 'PHP is a pain.');


C.

str_replace('cool', 'a pain', 'PHP is a pain.');


Get Premium 200-530 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.