How can I grab a value from an associative array based on it's key or value? Like for example this;
---------------------------------------------------------------------------------------------------
Array
(
[sentences] => 1
[intro] => 1
[retarded] => 1
[of] => 1
[because] => 1
[they] => 1
[them] => 1
[yeah] => 1
[old] => 1
[are] => 1
[Hello] => 1
[kinds] => 1
[John] => 1
[is] => 1
[name] => 1
[these] => 1
[Lechuga] => 1
[giving] => 1
[and] => 1
[my] => 2
[so] => 2
=> 2
[hate] => 2
)
---------------------------------------------------------------------------------------------------
So in that array, how can I grab all or just one of the '2's?
---------------------------------------------------------------------------------------------------
Array
(
[sentences] => 1
[intro] => 1
[retarded] => 1
[of] => 1
[because] => 1
[they] => 1
[them] => 1
[yeah] => 1
[old] => 1
[are] => 1
[Hello] => 1
[kinds] => 1
[John] => 1
[is] => 1
[name] => 1
[these] => 1
[Lechuga] => 1
[giving] => 1
[and] => 1
[my] => 2
[so] => 2
=> 2
[hate] => 2
)
---------------------------------------------------------------------------------------------------
So in that array, how can I grab all or just one of the '2's?