<!DOCTYPE html>
<html>
<body>
<?php
print_r(str_word_count("Hello world & good morning!",1));
print "<br>";
print_r(str_word_count("Hello world & good morning!",1,"&"));
?>
</body>
</html>