Last active
January 23, 2017 02:53
-
-
Save abhineetmittal/bcc323dae8db374b044e9f0feb2ecfa3 to your computer and use it in GitHub Desktop.
str_word_count from PHP
This file contains hidden or 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 | |
$string = 'This is a sample string.'; | |
$word_count = str_word_count ( string $string ); | |
echo $word_count; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment