Mega Code Archive

 
Categories / Php / Strings
 

Str_word_count php

<?php $summary = <<< summary this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. this is a test. summary;    $words = str_word_count($summary);    echo "Total words in summary: $words"; ?>