Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこの文字列を持っています:
array('type' => 'button', 'value' => 35);
簡単な質問: この文字列を配列に変換するにはどうすればよいですか?
問題は、時々間違ったコンマをeval吸ってキャッチすることです:explode(",",$string)
eval
explode(",",$string)
array('t,y,p,e' => 'bu,t,t,o,n', 'va,,,l,,ue' => '3,,,,,5');