PHP check element in multidimensional array

0

If you want to check elements if exist or not in the multidimensional array using php.So now I’ll describes how to check elements is exist or not in the multidimensional array.Simple way.Look at this function.


I wrote the function to check this.You have to call only to this function for check that element.
Function

This is my array.


How to call to this function for check the element.Here I’ll check “iPhone” is exist or not.(Example-1)

Share.

About Author

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.