phpメモ 配列 indexも探索
・処理部
・確認用
・結果
################ Test($items); ######################
$index_list = array("content","entry","category","ip");
------------------------------------------------------
--------- Index Array--------------
# Parameter - $items = array("index0 / content_val","index1 / entry_val","index2 / category_val");
# Call - Test($items);
********* result ************
content : Key => 0 / Val => index0 / content_val entry : Key => 1 / Val => index1 / entry_val
category : Key => 2 / Val => index2 / category_val
---------------------------------
--------- String Key Array --------------
# Parameter - $items = array("entry"=>"entry_val","category"=>"category_val","content"=>"content_val");
# Call - Test($items);
********* result ************
entry : Key => entry / Val => entry_val category : Key => category / Val => category_val
content : Key => content / Val => content_val
-----------------------------------