検索

phrase: max: clip:
target: order:
Results of 51 - 60 of about 247 for bar (0.016 sec.)
ユーザー定義のストリームフィルタを登録する 5587
« stream_filter_prepend stream_filter_remove » PHP Manual ストリーム 関数 ユーザー定義のストリー ... に定義されている場合、 false を返します。 例 例1 foo-bar.txt ストリームの文字を大文字化するフィルタ 下記の例 ... を 大文字化する strtoupper ストリームを実装し、 foo-bar.txt ストリームに適用するものです。 <?php /* フィル ... "Failed to register filter" ); $fp = fopen ( "foo-bar.txt" , "w" ); /* フィルタを開いたストリームに付加す ... ; /* ファイルを読み出し出力する */ readfile ( "foo-bar.txt" ); ?> 上の例の出力は以下となります。 LINE1 WO ...
https://man.plustar.jp/php/function.stream-filter-register.html - [similar]
Gets the static variables from function or method scope 5587
« uopz_get_return uopz_implement » PHP Manual Uopz 関数 Gets the static variables from function ... get_static() Usage <?php function foo () { static $bar = 'baz' ; } var_dump ( uopz_get_static ( 'foo' )); ... ?> 上の例の出力は以下となります。 array(1) { ["bar"]=> string(3) "baz" } 参考 uopz_set_static() - Set ... nction , string , variables , array , from , baz , bar , 参考 ...
https://man.plustar.jp/php/function.uopz-get-static.html - [similar]
Sets the static variables in function or method scope 5587
« uopz_set_return uopz_undefine » PHP Manual Uopz 関数 Sets the static variables in function or ... set_static() Usage <?php function foo () { static $bar = 'baz' ; var_dump ( $bar ); } uopz_set_static ( ' ... foo' , [ 'bar' => 'qux' ]); foo (); ?> 上の例の出力は以下となりま ...
https://man.plustar.jp/php/function.uopz-set-static.html - [similar]
リファレンス渡し 5587
« リファレンスが行わないこと リファレンスを返す » PHP Manual リファレンスの説明 リファレンス渡し ... php function foo (& $var ) { $var ++; } function & bar () { $a = 5 ; return $a ; } foo ( bar ()); ?> リフ ... <?php function foo (& $var ) { $var ++; } function bar () // & がないことに注意 { $a = 5 ; return $a ; } ... foo ( bar ()); // notice が発生 foo ( $a = 5 ); // 式、変数で ... ない foo ( 5 ); // 致命的なエラーが発生する class Foobar { } foo (new Foobar ()) // PHP 7.0.7 以降は E_NOTI ...
https://man.plustar.jp/php/language.references.pass.html - [similar]
match 5536
« switch declare » PHP Manual 制御構造 match match (PHP 8) match 式は、値の一致をチェックした結果 ... ( $food ) { 'apple' => 'This food is an apple' , 'bar' => 'This food is a bar' , 'cake' => 'This food is ... p $result = match ( $x ) { foo () => ..., $this -> bar () => ..., // foo() === $x であれば $this->bar() は ... = match ( $condition ) { 1 , 2 => foo (), 3 , 4 => bar (), default => baz (), }; ?> 注意 : 複数の default ... { match ( $condition ) { 1 , 2 => foo (), 3 , 4 => bar (), }; } catch (\ UnhandledMatchError $e ) { var_d ...
https://man.plustar.jp/php/control-structures.match.html - [similar]
インターフェイスの名前を取得する 5536
« ReflectionClass::getFileName ReflectionClass::getInterfaces » PHP Manual ReflectionClass インタ ... faceNames() の例 <?php interface Foo { } interface Bar { } class Baz implements Foo , Bar { } $rc1 = new ... えば以下のようになります。 Array ( [0] => Foo [1] => Bar ) 参考 ReflectionClass::getInterfaces() - インター ...
https://man.plustar.jp/php/reflectionclass.getinterfacenames.html - [similar]
include 5486
« require require_once » PHP Manual 制御構造 include include (PHP 4, PHP 5, PHP 7, PHP 8) includ ... での * * '動作します'という言葉の意味は、変数$fooと$barが読み込まれる側のファイ * * ルで使用可能である、とい ... ん。 include 'http://www.example.com/file.txt?foo=1&bar=2' ; // 動作しません: 'file.php?foo=1&bar=2' という ... ム上から探し出そうとします。 include 'file.php?foo=1&bar=2' ; // 動作します。 include 'http://www.example.c ... om/file.php?foo=1&bar=2' ; ?> 警告 セキュリティの警告 リモートファイルは ...
https://man.plustar.jp/php/function.include.html - [similar]
変数をデータ領域にキャッシュする 5446
« apcu_sma_info APCUIterator » PHP Manual APCu 関数 変数をデータ領域にキャッシュする apcu_store ... 含む配列を返します。 例 例1 apcu_store() の例 <?php $bar = 'BAR' ; apcu_store ( 'foo' , $bar ); var_dump ( ... ' )); ?> 上の例の出力は以下となります。 string(3) "BAR" 参考 apcu_add() - 新規の変数をデータ領域にキャッシ ...
https://man.plustar.jp/php/function.apcu-store.html - [similar]
変数の型をセットする 5446
« serialize strval » PHP Manual 変数操作 関数 変数の型をセットする settype (PHP 4, PHP 5, PHP 7, ... を返します。 例 例1 settype() の例 <?php $foo = "5bar" ; // string $bar = true ; // boolean settype ( $f ... r" ); // ここでは、$foo は 5です (整数) settype ( $bar , "string" ); // ここでは、$bar は "1" です (文字列 ...
https://man.plustar.jp/php/function.settype.html - [similar]
Sets value of existing class or instance property 5446
« uopz_set_mock uopz_set_return » PHP Manual Uopz 関数 Sets value of existing class or instance ... ty() Usage <?php class Foo { private static $staticBar ; private $bar ; public static function testStatic ... Bar () { return self :: $staticBar ; } public function testBar () { return $this -> b ... foo = new Foo ; uopz_set_property ( 'Foo' , 'staticBar' , 10 ); uopz_set_property ( $foo , 'bar' , 100 ); ... var_dump ( Foo :: testStaticBar ()); var_dump ( $foo -> testBar ()); ?> 上の例の出 ...
https://man.plustar.jp/php/function.uopz-set-property.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 NEXT