Question: it should done in html j querry and php using xampp 1. Write PHP a program to find an element in an array. Array =
1. Write PHP a program to find an element in an array. Array = ["mango", "orange", "grapes", "kiwi", "pineapple", "melon"] Give a fruit name of yourselft and return element if the element exists or return message. For example: Test cases: 1. If you give "mango" as variable your program return "mango" 2. If you give "strawberry" as variable your program return "element does not exist" Make sure you print the array, seach key and return value using echo
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
