array_combine() function PHP

How to use array_combine() function in an array in php language.
php array function.

Here is solution.I am explain array_combine() use for php function.

array_combine() :-

Definition & Usage :-

array_combine(keys, values), create an array by using one array for the keys and another for the values.


$name = array('Rahul','Jyoti');
$age = array('25','30');
$combine = array_combine($name,$age);
answer:-- array( [Rahul]=>25 [Jyoti] =>30 )