This site is mobile accessible. Press the "Tap Here" button to use a different font-size.


Smartphone icons created by Freepik - Flaticon

PHP String Functions

str_word_count() - Count Words in a String

2

<?php
// Count Words in a String
echo str_word_count("Hello world!");
?>