PHP Array Exercises : Search a specified value within the values of an associative array
Write a PHP function to search a specified value within the values of an associative array.
Sample Solution:
PHP Code:
Output:
Math has not found in part1 Math has not found in part2 Math has found in part3
Flowchart:

PHP Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a PHP program to get the extension of a file.
Next: Write a PHP program to sort an associative array (alphanumeric with case-sensitive data) by values.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.