hi all,
i have an array like this one
Array
(
Array
(
[0] => Array
(
[id] => 12
[name] => praveen
)
[1] => Array
(
[id] => 14
[name] => pandu
)
[2] => Array
(
[id] => 16
[name] => phani
)
and i have database where some of the values will be same as this array but names will be different or maybe database may contain some extra names too...
for example if database contains these values
name: karthik
id: 25
name:sandeep
id:10
name: phani
id: 33
name: praveen
id:98
then i want an array like this one
Array
(
Array
(
[0] => Array
(
[id] => 12-98
[name] => praveen
)
[1] => Array
(
[id] => 14
[name] => pandu
)
[2] => Array
(
[id] => 16-33
[name] => phani
)
[3] => Array
(
[id] => 10
[name] => sandeep
)
[4] => Array
(
[id] => 25
[name] => karthik
)
so that i can send two id s to different tables to evaluate...
can anyone help me out..