I would like to search a key of an array in php which contains the word.
Example :
$test = array("hello"=>"value1","hello5"=>"value","testinghello"=>"test");
I would like to use it like this.
if(!empty($test[key_here_which_contains_hello]))
I would like to display the value of an array with the key contains hello. In that example all value will be displayed because all keys has “hello”.
Thanks for your help.
1 Answer