String Word Count Function in PHP

str_word_count():-

Counts the number of words inside a string. The str_word_count() function is a built-in function in PHP and is used to return information about words used in a string.

Example:-

<!DOCTYPE html>
<html>
<body>

<?php
echo str_word_count("I am working on ESTS");
?>

</body>
</html>

output:-

String Word Count Function in PHPexpoundsofttechsolution

What is inheritance?