One of my array value contains
$all_data_array = Array
(
[0] => 'General Information'
[1] => 'Brand'
[2] => '<p><div style="bolor:#000000;"><li>Product Details</li></div></p>'
)
.
And I want to search for key of the value in Array, where array value has text "Product Details" in it, wrapped around some html data. I wrote the following code, but it's not working. Can someone help?
<?php echo $new_key = array_search('Product Details', $all_data_array); ?>