Php Quiz: And A Short Array Issue :: Copy Array Values Into Key - Webmasters - Nairaland
Nairaland Forum › Science/Technology › Webmasters › Php Quiz: And A Short Array Issue :: Copy Array Values Into Key (1284 Views)
1 Reply
| Php Quiz: And A Short Array Issue :: Copy Array Values Into Key by Nobody: 5:53pm On Jul 27, 2011 |
I have an array that looks like this: <?phpI want to convert it into: $babes=Array("Chichi"=>"Chichi","Chika"=>"Chika","Chiamaka"=>"Chiamaka" ;What is the fastest way to do that? Note that the following commands are unacceptable: - Foreach, while or other loops - Array_keys / Array_Values - Array_Flip - (why will you wanna flip the babes) |
Why A Blogger Should Never Copy And Paste • Why Does This Mysql Query Display "array" Instead Of The Result • Getting The First Character Of Array Values, Php ? • 2 • 3 • 4
Reseller Web Hosting. • Syskay's Outage: Some Tips For Those Affected. • Learn Php From Novice To Pro Like A Boss
;