Skip to content

Instantly share code, notes, and snippets.

@abunsen
Created June 16, 2010 10:27
Show Gist options
  • Save abunsen/440436 to your computer and use it in GitHub Desktop.
Save abunsen/440436 to your computer and use it in GitHub Desktop.
<?php
echo str_replace( 'p', 'ck', 'stop');
// gives us stock
/* the first argument is a string: 'p'
which is what we will be replacing with the second argument 'ck'
in the final argument which is the string 'stop' */
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment