Rate this product
- Word frequency counter : (name of your file should be q2.php).Take some words as input from the command line. Print the frequencycount (number of occurrences) of each word sorted in alphabetical order.Frequency count must be case-insensitive. (e.g. both Hey and hey would be counted under the same word hey)Validate your input, using error handling mechanism in Question 1.
- Substring Frequency counter: (name of your file should be q3.php).Take two words as input from the command line. Let us call first word as x and second word as y.Count how many times y occurs as a substring in x, and the positions in x where it occurs it.1
For example, on input x = abacabab and y = ab your output should be as follows:30
4 6.
Validate your input, using error handling mechanism in Question 1.

![[Solved] CS213 Assignment 4 Part 2 PHP 1 part 2 statement](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[Solved] CS213 Assignment 11-Awk Programming](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.