てくてくあるく

WordPress の テーマ とか プラグイン に ついて 勉強しています

で 最後に 実際に 動作するか
実行してみます

<?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 );
  

Related Article

Docker で 開発環境 の ベースを 作ってみた (4)

詳細へ »

Docker で 開発環境 の ベースを 作ってみた (3)

詳細へ »

Docker で 開発環境 の ベースを 作ってみた (1)

詳細へ »