05, 09 2010, 08:33:19 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Weztec home
Computer Support Forum
>
Web Site Design & Development
>
PHP Snippets
> Topic:
PHP: Count Words
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: PHP: Count Words (Read 2582 times)
0 Members and 1 Guest are viewing this topic.
Weztec Support Team
Administrator
Newbie
Offline
Posts: 38
PHP: Count Words
«
on:
06, 07 2007, 04:55:56 PM »
Code:
<?php
$text
=
"This is the text to count"
;
$count
=
count
(
explode
(
" "
,
$text
));
echo
"$text contains $count words"
;
?>
Logged
Pages: [
1
]
Go Up
Print
Computer Support Forum
>
Web Site Design & Development
>
PHP Snippets
> Topic:
PHP: Count Words
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Computer Discussion
-----------------------------
Support
-----------------------------
=> Contract Support
=> General Support
-----------------------------
Web Site Design & Development
-----------------------------
=> HTML
=> PHP Beginner
=> PHP Intermediate
=> PHP Advanced
=> PHP Snippets
=> MYSQL Snippets
=> Full Scripts
=> CSS
Loading...