<?php function word_count($sentence){ $array = explode(" ", $sentence); return count($array); } $words = word_count("The is a group of words"); echo $words; ?>
You have javascript disabled. You will not be able to edit any code.