Source Code:
(back to article)
<?php $string = "I have an apple"; $string = str_replace("apple", "", $string); echo $string; // Output: "I have an "
Result:
Report an issue