|
get_debug_type変数の型名をデバッグしやすい形で取得する 説明
string get_debug_type(mixed
$value )
PHP の変数 gettype は、歴史的な理由で決まった型の名前を返します。 この関数は、それよりも実際に使われている型により近い名前を返すという点が異なります。 パラメータ
戻り値返される文字列としてあり得るのは、以下になります:
例
例1 get_debug_type の例
<?php 上の例の出力は、 たとえば以下のようになります。 null bool int float string array resource (stream) resource (closed) stdClass class@anonymous 参考
|