有沒有什麼方法可以將mysql stdClass對象保存在mysql表字段中帶有更改對象?在mysql表字段中保存php stdClass對象
這是我的目標:
stdClass Object
(
[product] => stdClass Object
(
[id] => 413860
[name] => SB25
[description] => Array
(
[0] => AMD Athlon 64 3700+
[1] => 2x RAM 1024 MB DDR
[2] => 2x HDD 320 GB SATA
[3] => RAID Controller 2-Port SATA PCI - 3ware 8006-2LP
)
[traffic] => 20 TB
[dist] => Array
(
[0] => Rescue system
)
[arch] => Array
(
[0] => 64
)
[lang] => Array
(
[0] => en
)
[cpu] => AMD Athlon 64 3700+
[cpu_benchmark] => 568
[memory_size] => 2
[hdd_size] => 320
[hdd_count] => 2
[datacenter] => 1
[price] => 21.01
[price_setup] => 0.00
[price_vat] => 21.01
[price_setup_vat] => 0.00
[fixed_price] => 1
[next_reduce] => 0
)
)
我要救這個對象在MySQL和後來retrive它... 任何一個能幫助我嗎? 感謝
你想保存什麼? – aldrin27
你可以json_encode並保存它。 –