Created
June 16, 2010 10:27
-
-
Save abunsen/440436 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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