Thursday, August 14, 2014

String in PHP

<?php

$string = 'This is a string and testing!';

$string_word_count = str_word_count($string, 1);

print_r($string_word_count);

?>

No comments:

Post a Comment