検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 59 for baz (0.006 sec.)
Copies a method from class to another 8301
« runkit7_method_add runkit7_method_redefine » PHP Manual runkit7 関数 Copies a method from clas ... e() method from the Foo class to the Bar class, as baz() runkit7_method_copy ( 'Bar' , 'baz' , 'Foo' , 'e ... xample' ); // output copied function echo Bar :: baz (); ?> 上の例の出力は以下となります。 foo! 参考 ru ...
https://man.plustar.jp/php/function.runkit7-method-copy.html - [similar]
オブジェクト定数 8301
« プロパティ クラスのオートローディング » PHP Manual クラスとオブジェクト オブジェクト定数 オブジ ... ass Foo { public const BAR = 'bar' ; private const BAZ = 'baz' ; } echo Foo :: BAR , PHP_EOL ; echo Foo : ... : BAZ , PHP_EOL ; ?> 上の例の PHP 7.1 での出力は、このよ ... : Uncaught Error: Cannot access private const Foo::BAZ in … 注意 : PHP 7.1.0 以降は、クラス定数のアクセス ...
https://man.plustar.jp/php/language.oop5.constants.html - [similar]
可変関数 8111
« 戻り値 内部(ビルトイン)関数 » PHP Manual 関数 可変関数 可変関数 PHP は可変関数(variable func ... static function bar () { echo "bar\n" ; } function baz () { echo "baz\n" ; } } $func = array( "Foo" , "ba ... (); // "bar" を表示します $func = array(new Foo , "baz" ); $func (); // "baz" を表示します $func = "Foo:: ...
https://man.plustar.jp/php/functions.variable-functions.html - [similar]
プロパティがコンストラクタの引数から昇格したものかを調べる 8111
« ReflectionProperty::isPrivate ReflectionProperty::isProtected » PHP Manual ReflectionProperty ... perty::isPromoted() の例 <?php class Foo { public $baz ; public function __construct (public $bar ) {} } ... $o = new Foo ( 42 ); $o -> baz = 42 ; $ro = new ReflectionObject ( $o ); var_dump ... > isPromoted ()); var_dump ( $ro -> getProperty ( 'baz' )-> isPromoted ()); ?> 上の例の出力は以下となりま ...
https://man.plustar.jp/php/reflectionproperty.ispromoted.html - [similar]
クラス定数を取得する 8024
« ReflectionClass::getReflectionConstant ReflectionClass::getShortName » PHP Manual ReflectionCl ... FOO = 1 ; protected const BAR = 2 ; private const BAZ = 3 ; } $foo = new Foo (); $reflect = new Reflecti ... 例の出力は、 たとえば以下のようになります。 FOO BAR BAZ array(3) { [0]=> object(ReflectionClassConstant)#3 ... ectionClassConstant)#5 (2) { ["name"]=> string(3) "BAZ" ["class"]=> string(3) "Foo" } } 参考 ReflectionCl ...
https://man.plustar.jp/php/reflectionclass.getreflectionconstants.html - [similar]
引数のリストから要素をひとつ返す 7922
« forward_static_call func_get_args » PHP Manual 関数処理 関数 引数のリストから要素をひとつ返す ... ar_export ( func_get_arg ( 0 )), PHP_EOL ; $arg = 'baz' ; echo 'After change : ' , var_export ( func_get_ ... ar_export ( func_get_arg ( 0 )), PHP_EOL ; $arg = 'baz' ; echo 'After change : ' , var_export ( func_get_ ... は以下となります。 As passed : 'bar' After change : 'baz' As passed : 'bar' After change : 'baz' 注意 注意 ...
https://man.plustar.jp/php/function.func-get-arg.html - [similar]
関数の引数リストを配列として返す 7834
« func_get_arg func_num_args » PHP Manual 関数処理 関数 関数の引数リストを配列として返す func_ge ... var_export ( func_get_args ()), PHP_EOL ; $arg = 'baz' ; echo 'After change : ' , var_export ( func_get_ ... var_export ( func_get_args ()), PHP_EOL ; $arg = 'baz' ; echo 'After change : ' , var_export ( func_get_ ... array ( 0 => 'bar', ) After change : array ( 0 => 'baz', ) As passed : array ( 0 => 'bar', ) After change ... : array ( 0 => 'baz', ) 注意 注意 : PHP 8.0.0 以降における func_*() 関 ...
https://man.plustar.jp/php/function.func-get-args.html - [similar]
以前に設定したHTTPヘッダを削除する 7834
« header_register_callback header » PHP Manual ネットワーク 関数 以前に設定したHTTPヘッダを削除す ... する <?php header ( "X-Foo: Bar" ); header ( "X-Bar: Baz" ); header_remove ( "X-Foo" ); ?> 上の例の出力は、 ... たとえば以下のようになります。 X-Bar: Baz 例2 以前設定したすべてヘッダを削除する <?php heade ... r ( "X-Foo: Bar" ); header ( "X-Bar: Baz" ); header_remove (); ?> 上の例の出力は、 たとえば ...
https://man.plustar.jp/php/function.header-remove.html - [similar]
準備されたクエリを実行する 7834
« ibase_errmsg ibase_fetch_assoc » PHP Manual Firebird/InterBase 関数 準備されたクエリを実行する ... ase_prepare ( $dbh , "UPDATE FOO SET BAR = ? WHERE BAZ = ?" ); foreach ( $updates as $baz => $bar ) { iba ... se_execute ( $query , $bar , $baz ); } ?> 参考 ibase_query() - InterBase データベース ...
https://man.plustar.jp/php/function.ibase-execute.html - [similar]
列挙型をシリアライズする 7834
« 値のリスト 例 » PHP Manual 列挙型(Enum) 列挙型をシリアライズする 列挙型をシリアライズする 列挙 ... 抑えるためです。 <?php enum Foo { case Bar ; } enum Baz : int { case Beep = 5 ; } print_r ( Foo :: Bar ); ... print_r ( Baz :: Beep ); /* 上記は、以下を出力 Foo Enum ( [name] ... => Bar ) Baz Enum:int { [name] => Beep [value] => 5 } */ ?> 関連 ...
https://man.plustar.jp/php/language.enumerations.serialization.html - [similar]
PREV 1 2 3 4 5 6 NEXT