I have a json object
'developer' =>
array (
'count' => 1,
'docPosition' => 100,
'countCv' => 1,
'weight' => '0.077',
),
'Software Engineer' =>
array (
'count' => 4,
'docPosition' => 716,
'countCv' => 4,
'weight' => '0.308',
),
'engineer' =>
array (
'count' => 5,
'docPosition' => 725,
'countCv' => 5,
'weight' => '0.385',
),
'Software Development Engineer' =>
array (
'count' => 1,
'docPosition' => 1272,
'countCv' => 1,
'weight' => '0.077',
),
'Development Engineer' =>
array (
'count' => 1,
'docPosition' => 1281,
'countCv' => 1,
'weight' => '0.077',
),
'Contract' =>
array (
'count' => 1,
'docPosition' => 1303,
'countCv' => 1,
'weight' => '0.077',
),
)
I want to get the keys of the object (developer, Software Engineer, engineer, etc) and use them to search the db for matches that are in a field called Industry that is an array. I am unsure about the following.
- How to get the keys on the object and turn it into an array.
- Search my db for any matches between the array I created and the array in the field Industry.
I have searched google and stack and have not found anything helpful. Any ideas or strategies would be appreciated.