Ben şimdiye kadar birden fazla nesne şeyler saklamak için büyük olmuştur benim veritabanında bir tablo var. Ama bir çok nesne dizi zımbırtısının dönüştürmeye muktedir istiyorum.
İşte (mysql), bu yeni bir 'nesne' ile ilgili bir veri:
    uid     field              value
    page:1  shop[2].location    In Shops, Dundas Arcades,Middlesbrough, TS1 1HT
    page:1  shop[1].location    5a High Street, Stockton-on-tees, TS18 1UB
    page:1  name                Enter The Asylum
    page:1  contact.website     http://entertheasylum.co.uk
    page:1  contact.phone       0800 090 090
Şimdi ne arıyorum PHP ile (print_r çıkışı) gibi bir şey haline dönüştürmek için:
array(
   "name" => "Enter The Asylum",
   "shop" => array(
      array("location" => "In Shops, Dundas Arcades..."),
      array("location" => "5a High Street, Stockton-on-tees...")
   ),
   "contact" => array(
      "website" => "http://entertheasylum.co.uk",
      "phone" => "0800 090 090"
   )
 )
Herkes herhangi bir fikir var mı?
Joe