func_get_args
関数の引数リストを配列として返す
http://php.net/manual/ja/function.func-get-args.php
<?php
function test() {
$data = func_get_args();
print_r($data);
}
test('first', 'second', 'third');
%php test.php
Array
(
[0] => first
[1] => second
[2] => third
)
?>
session_regenerate_id
現在のセッションIDを新しく生成したものと置き換える
http://www.php.net/manual/ja/function.session-regenerate-id.php
session_start();
$data['old'] = session_id();
session_regenerate_id();
$data['new'] = session_id();
print_r($data);
%php test.php
Array
(
[old] => 34cab18183bc3947feb1b393faab37ce
[new] => dd70aed089c15334bb1d2f3192fb9bfd
)
ini_set
設定オプションの値を設定する
http://php.net/manual/ja/function.ini-set.php
http://cai.cs.shinshu-u.ac.jp/sugsi/Lecture/php/manual/function.ini-set.html
ini_get
設定オプションの値を得る
http://php.net/manual/ja/function.ini-get.php