Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php
//jsonデータを作成します
$json = '["html","css","php","mysql"]';
//jsonデータを、to_arrayメセッドで、配列に変換します。
$arr = Format::forge($json, 'json')->to_array();
print_r($arr);
//出力結果
Array ( [0] => html [1] => css [2] => php [3] => mysql )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment