Monday, December 4, 2017

String Word Count in PHP

<?php

$string = 'I am Thet Naing Win and who are you?';
$string_word_count = str_word_count($string, 1);
print_r($string_word_count);

?>

No comments:

Post a Comment