InterviewSolution
Saved Bookmarks
| 1. |
How to check an element is exists in array or not in PHP? |
|
Answer» With the help of in_array() function we can check any element is EXISTS in ARRAY or not. It's return type is TRUE when element is exists and false when an element is not exists in array. Syntaxin_array(SEARCH,array,type) Example$array = array("Best", "Interview", "Questions"); |
|