Source Code:
(back to article)
<?php $string = 'Hello World'; $newString = preg_replace('/Hello/', '', $string); // $newString is now ' World' echo $newString;
Result:
Report an issue