検索

phrase: max: clip:
target: order:
Results of 121 - 130 of about 418 for Foo (0.010 sec.)
宣言しているクラスを取得する 4384
« ReflectionParameter::getClass ReflectionParameter::getDeclaringFunction » PHP Manual Reflectio ... 例1 メソッドを宣言しているクラスの取得 <?php class Foo { public function bar (\ DateTime $datetime ) { } ... } class Baz extends Foo { } $param = new \ ReflectionParameter ([ 'Baz' , ... ect(ReflectionClass)#2 (1) { ["name"]=> string(3) "Foo" } 参考 ReflectionParameter::getClass() - リフレク ...
https://man.plustar.jp/php/reflectionparameter.getdeclaringclass.html - [similar]
ファイルへのパスを文字列で返す 4384
« SplFileInfo::setInfoClass SplFileObject » PHP Manual SplFileInfo ファイルへのパスを文字列で返す ... __toString() の例 <?php $info = new SplFileInfo ( 'foo' ); var_dump ( $info -> __toString ()); echo $info ... の出力は、 たとえば以下のようになります。 string(3) "foo" foo string(12) "/usr/bin/php" /usr/bin/php 関連キ ...
https://man.plustar.jp/php/splfileinfo.tostring.html - [similar]
送信した (もしくは送信される予定の) レスポンスヘッダの一覧を返す 4350
« header headers_sent » PHP Manual ネットワーク 関数 送信した (もしくは送信される予定の) レスポン ... スポンスヘッダをそれ自身に追加します */ setcookie ( 'foo' , 'bar' ); /* 独自のレスポンスヘッダを定義します。 ... ライアントで無視されます */ header ( "Example-Test: foo" ); /* レスポンスがプレーンテキストだと宣言します ... なります。 array(3) { [0]=> string(19) "Set-Cookie: foo=bar" [1]=> string(17) "Example-Test: foo" [2]=> st ...
https://man.plustar.jp/php/function.headers-list.html - [similar]
URL エンコードされたクエリ文字列を生成する 4350
« get_meta_tags parse_url » PHP Manual URL 関数 URL エンコードされたクエリ文字列を生成する http_ ... build_query() の簡単な使用法 <?php $data = array( 'foo' => 'bar' , 'baz' => 'boom' , 'cow' => 'milk' , 'n ... '' , '&amp;' ); ?> 上の例の出力は以下となります。 foo=bar&baz=boom&cow=milk&php=hypertext+processor foo= ... の場合での http_build_query() <?php $data = array( 'foo' , 'bar' , 'baz' , null , 'boom' , 'cow' => 'milk' ... , 'myvar_' ); ?> 上の例の出力は以下となります。 0=foo&1=bar&2=baz&4=boom&cow=milk&php=hypertext+processo ...
https://man.plustar.jp/php/function.http-build-query.html - [similar]
変数の型をセットする 4350
« serialize strval » PHP Manual 変数操作 関数 変数の型をセットする settype (PHP 4, PHP 5, PHP 7, ... 合に false を返します。 例 例1 settype() の例 <?php $foo = "5bar" ; // string $bar = true ; // boolean sett ... ype ( $foo , "integer" ); // ここでは、$foo は 5です (整数) s ...
https://man.plustar.jp/php/function.settype.html - [similar]
メッセージを出力し、現在のスクリプトを終了する 4317
« eval get_browser » PHP Manual その他の関数 メッセージを出力し、現在のスクリプトを終了する exit ... トダウン関数やデストラクタが実行される例 <?php class Foo { public function __destruct () { echo 'Destruct: ... 'Shutdown: ' . __FUNCTION__ . '()' . PHP_EOL ; } $foo = new Foo (); register_shutdown_function ( 'shutdo ... 力は以下となります。 Shutdown: shutdown() Destruct: Foo::__destruct() 注意 注意 : これは、関数ではなく 言語 ...
https://man.plustar.jp/php/function.exit.html - [similar]
関数の引数 4317
« ユーザー定義関数 戻り値 » PHP Manual 関数 関数の引数 関数の引数 引数のリストにより関数へ情報を ... した引数は、必須の引数の後に宣言する <?php function foo ( $a = [], $b ) {} // デフォルト値が使われないため ... 、PHP 8.0.0 以降は推奨されません function foo ( $a , $b ) {} // 上のコードと機能的には同じですが ... 文法 <?php myFunction ( paramName : $value ); array_foobar (array: $value ); // 以下の書き方はサポートされ ... を複数回渡すと、Error がスローされる <?php function foo ( $param ) { ... } foo ( param : 1 , param : 2 ); ...
https://man.plustar.jp/php/functions.arguments.html - [similar]
例外(exceptions) 4317
« PHP 7 でのエラー 例外を拡張する » PHP Manual 言語リファレンス 例外(exceptions) 例外(exceptions ... hp function test () { try { throw new Exception ( 'foo' ); } catch ( Exception $e ) { return 'catch' ; } ... testing () { try { try { throw new MyException ( 'foo!' ); } catch ( MyException $e ) { // 改めてスロー ... ion $e ) { var_dump ( $e -> getMessage ()); } } } $foo = new Test ; $foo -> testing (); ?> 上の例の出力は ... 以下となります。 string(4) "foo!" 例8 複数の例外ハンドリングをひとつの catch で行う ...
https://man.plustar.jp/php/language.exceptions.html - [similar]
マジックメソッド 4317
« オブジェクトの反復処理 finalキーワード » PHP Manual クラスとオブジェクト マジックメソッド マジ ... hp // 簡単なクラスを宣言 class TestClass { public $foo ; public function __construct ( $foo ) { $this -> ... foo = $foo ; } public function __toString () { return $this - ... > foo ; } } $class = new TestClass ( 'Hello' ); echo $cl ... ; } } $a = new A ; $a -> var1 = 5 ; $a -> var2 = 'foo' ; $b = var_export ( $a , true ); var_dump ( $b ); ...
https://man.plustar.jp/php/language.oop5.magic.html - [similar]
新規の変数をデータ領域にキャッシュする 4291
« APCu 関数 apcu_cache_info » PHP Manual APCu 関数 新規の変数をデータ領域にキャッシュする apcu_a ... 1 apcu_add() の例 <?php $bar = 'BAR' ; apcu_add ( 'foo' , $bar ); var_dump ( apcu_fetch ( 'foo' )); echo ... "\n" ; $bar = 'NEVER GETS SET' ; apcu_add ( 'foo' , $bar ); var_dump ( apcu_fetch ( 'foo' )); echo ...
https://man.plustar.jp/php/function.apcu-add.html - [similar]