I have here two arrays. Array1 has a related value to array2. What I need is that I'm going to save both values at once. I used 'array_combine' function but my arrays are having unequal keys. Any help is greatly appreciated. Thank you.
PHP Code:$type = $_POST['dev_type'];
$sn = $_POST['dev_sn'];
Array
(
[0] => 22
[1] => 19
[2] => 66
[3] => 62
[4] => 64
)
Array
(
[0] => sn1
[1] => sn2
[2] => sn3
)



Reply With Quote



Bookmarks