Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,150,652 members, 7,809,474 topics. Date: Friday, 26 April 2024 at 10:10 AM |
Nairaland Forum / Science/Technology / Webmasters / Php Quiz: And A Short Array Issue :: Copy Array Values Into Key (1194 Views)
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)
(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: <?php I 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) |
(1) (Reply)
How To Advert On Facebook With 1 Cent / Xenforo Licensed Forum For Sale. / MTN Gives Free Data On Beta Talk And Truetalk After Recharging
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 5 |