duplicate one element from php array

Posted by robertdd on Stack Overflow See other posts from Stack Overflow or by robertdd
Published on 2010-04-22T09:02:43Z Indexed on 2010/04/22 9:13 UTC
Read the original article Hit count: 202

Filed under:
|
|

how i can duplicate one element from array:

for example, i have this array:

Array
(
    [LRDEPN] => 0008.jpg
    [OABCFT] => 0030.jpg
    [SIFCFJ] => 0011.jpg
    [KEMOMD] => 0022.jpg
    [DHORLN] => 0026.jpg
    [AHFUFB] => 0029.jpg
)

if i want to duplicate this: 0011.jpg , how to proceed?

i want to get this:

Array
(
    [LRDEPN] => 0008.jpg
    [OABCFT] => 0030.jpg
    [SIFCFJ] => 0011.jpg
    [NEWKEY] => 0011.jpg
    [KEMOMD] => 0022.jpg
    [DHORLN] => 0026.jpg
    [AHFUFB] => 0029.jpg
)

© Stack Overflow or respective owner

Related posts about duplicate-data

Related posts about php