Given the following array structure:
Array
(
[0] => Array
(
[widget_title] => Example
[widget_content] => A bunch of content, including <strong>HTML</strong>.
)
[1] => Array
(
[widget_title] => Example #2
[widget_content] => Less content this time.
)
)
What is the best way to access widget_content
based on the value of widget_title
?
For instance, I want to search for "Example" and return that first array, then store it to access the widget_content
value.