What will be the output of the following PHP code? [code] <?php $str = "Hello! My name is Cameron Fox. Coffee?"; $find = array('/is/

What will be the output of the following PHP code?
Code:
    <?php
    $str = "Hello! My name is Cameron Fox. Coffee?";
    $find = array('/is/','/coffee/');
    $replace = array('/was/','/tea/');
    echo preg_replace ($find, $replace, $str);
    ?>
A. Hello! My name was Cameron Fox. tea?
B. Hello! My name is Cameron Fox. tea?
C. Hello! My name is Cameron Fox. Coffee?
D. Hello! My name was Cameron Fox. Coffee?
 

Tìm kiếm

Back
Top