Total members 11894 |It is currently Fri Nov 22, 2024 10:39 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Code:

<?php
$summary 
= <<< summary
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text 
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text 
summary;
   
$words str_word_count($summary);
   echo 
"Total words in summary: $words";
?>




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : word counts in php
 Word & ASP.Net ISSUE     -  
 Simple Word Program     -  
 convert word, Excel to PDF     -  
 C# Word Styling Automation     -  
 Change the word spacing in paragraph     -  
 java code to open word doc attached in ms access.db     -  



Topic Tags

PHP Strings
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com