The following code piece should print “PHP is cool”, but unexpectedly, it just prints “cool”. How
would you correct it?
<code>
echo str_replace(‘PHP is a pain.’, ‘a pain’, ‘cool’);
</code>

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.’);