1
2

More than 5 years have passed since last update.

よく使用するPHPスクリプト

Last updated at Posted at 2016-06-25
<?php

print_r(get_defined_constants());
//定義済みの定数すべてをわかりやすく出力する

print_r(get_loaded_extensions());
//PHPインタプリタにコンパイル、 ロードされている全てのモジュールの名前を返す

print_r(get_defined_functions());
//定義済みの関数すべてをわかりやすく出力する

print_r(get_declared_classes());
//定義済みのクラス名をわかりやすく出力する

register_shutdown_function();
//スクリプト終了時に実行する関数を登録できる

$a = "hoge"
var_dump($a);
//コード中に埋め込み、出力元のファイル場所、データ型、値を出力する

?>

※今後調べるたびに追記していきます。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2