/ Published in: PHP
Expand |
Embed | Plain Text
function str_replace_once($needle , $replace , $haystack){ // Looks for the first occurence of $needle in $haystack // and replaces it with $replace. if ($pos === false) { // Nothing found return $haystack; } }
You need to login to post a comment.
