is it possible to do searching in PHP array same we do in MySQL.
Eg: I have this array
array(
'mark@test.com'=> `Mark Mian`,
'jhon@test.com'=> `John jack`,
'logon@test.com'=> `Bob Logon`,
'Stela@test.com'=> `Stela Josh`,
'json@test.com'=> `Json Josh`
'bobby@test.com'=> `Bob Mark`
)
and I would to do this type of searching,
Eg: If I search Mark
it should return me this
'mark@test.com' => `Mark Mian
If I search Bob
it should return me
'bobby@test.com'=>
Bob Mark
'logon@test.com'=>
Bob Logon
,
If I search only a
it should return me those elements which contains a
eg:
'mark@test.com'=>
Mark Mian
,'jhon@test.com'=>
John jack
,'Stela@test.com'=>
Stela Josh
,'bobby@test.com'=>
Bob Mark
Note: Search should be by key or value