Advertisement:

dumb array issue

Aloittaja The Wizard, maaliskuu 11, 2014, 06:49:17 AP

« edellinen - seuraava »

The Wizard

This code

$c = array_combine($_POST['image_number'], $_POST['image_name']);

Gets me this array -

Array
(
    [2] => krynoid
    [1] => doctor01
    [3] => doctor02
    [4] => doctor03
    [5] => doctor04
    [6] => doctor05
    [7] => doctor06
    [8] => doctor07
    [9] => doctor08
    [10] => doctor09
)
1

This code
$x = implode(',', $c);

Gets me this array -
krynoid,doctor01,doctor02,doctor03,doctor04,doctor05,doctor06,doctor07,doctor08,doctor091

As you can see from the first array I have switched the first and second items, but in the second array they are put back to their original places.
How do I make the switch show up in the second array.

Thanks

Wiz

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

LainaaOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

The Wizard

It's the little things you forget.

Thank You Margarett

Advertisement: