PHP で SQLite3 を 使う
で 最後に 実際に 動作するか
実行してみます
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <?php $test_data = array ( 'test_data_01' => true, 'test_data_02' => false, 'test_data_03' => 1, 'test_data_04' => 1.5, 'test_data_05' => '1/2' , 'test_data_06' => 'test' , 'test_data_07' => array ( true, false ), 'test_data_08' => array ( 1, 1.5, '1/2' ), 'test_data_09' => array ( 'hoge' , 'huga' ), 'test_data_10' => Null, ); var_dump( $test_data ); $results = add_option( 'array' , $test_data ); var_dump( $results ); $results = update_option( 'update' , md5( microtime() ) ); var_dump( $results ); $results = get_option( 'update' ); var_dump( $results ); |