検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 247 for bar (0.026 sec.)
指定した変数の割当を解除する 9795
« unserialize var_dump » PHP Manual 変数操作 関数 指定した変数の割当を解除する unset (PHP 4, PHP ... oy_foo () { global $foo ; unset( $foo ); } $foo = 'bar' ; destroy_foo (); echo $foo ; ?> 上の例の出力は以 ... 下となります。 bar グローバル変数を関数の内部で unset() するには、 $G ... います。 <?php function foo () { unset( $GLOBALS [ 'bar' ]); } $bar = "something" ; foo (); ?> 参照渡しされ ... れる前と同じ値を保持します。 <?php function foo (& $bar ) { unset( $bar ); $bar = "blah" ; } $bar = 'somet ...
https://man.plustar.jp/php/function.unset.html - [similar]
可変関数 9362
« 戻り値 内部(ビルトイン)関数 » PHP Manual 関数 可変関数 可変関数 PHP は可変関数(variable func ... tion foo () { echo "In foo()<br />\n" ; } function bar ( $arg = '' ) { echo "In bar(); argument was ' $ar ... c = 'foo' ; $func (); // This calls foo() $func = 'bar' ; $func ( 'test' ); // This calls bar() $func = ' ... <?php class Foo { function Variable () { $name = 'Bar' ; $this -> $name (); // Bar() メソッドのコール } ... function Bar () { echo "This is Bar" ; } } $foo = new Foo (); $ ...
https://man.plustar.jp/php/functions.variable-functions.html - [similar]
可変変数 8335
« 変数のスコープ 外部から来る変数 » PHP Manual 変数 可変変数 可変変数 変数名を可変にできると便利 ... 、呼び出し元のスコープで行われます。 たとえば $foo->$bar のようにするとローカルスコープで $bar を調べ、その ... 値を $foo のプロパティ名として使います。 $bar が配列へのアクセスであっても同じです。 波括弧を使っ ... です。 例1 可変プロパティの例 <?php class foo { var $bar = 'I am bar.' ; var $arr = array( 'I am A.' , 'I a ... C.' ); var $r = 'I am r.' ; } $foo = new foo (); $bar = 'bar' ; $baz = array( 'foo' , 'bar' , 'baz' , 'q ...
https://man.plustar.jp/php/language.variables.variable.html - [similar]
名前空間の使用法: 基本編 8134
« 同一ファイル内での複数の名前空間の定義 名前空間と動的言語機能 » PHP Manual 名前空間 名前空間の ... う例を次に示します。 file1.php <?php namespace Foo \ Bar \ subnamespace ; const FOO = 1 ; function foo () { ... cmethod () {} } ?> file2.php <?php namespace Foo \ Bar ; include 'file1.php' ; const FOO = 2 ; function f ... staticmethod () {} } /* 非修飾名 */ foo (); // Foo\Bar\foo 関数と解釈されます foo :: staticmethod (); // ... Foo\Bar\foo クラスの staticmethod メソッドと解釈されます e ...
https://man.plustar.jp/php/language.namespaces.basics.html - [similar]
URL エンコードされたクエリ文字列を生成する 7791
« get_meta_tags parse_url » PHP Manual URL 関数 URL エンコードされたクエリ文字列を生成する http_ ... ry() の簡単な使用法 <?php $data = array( 'foo' => 'bar' , 'baz' => 'boom' , 'cow' => 'milk' , 'null' => n ... , '&amp;' ); ?> 上の例の出力は以下となります。 foo=bar&baz=boom&cow=milk&php=hypertext+processor foo=bar& ... の http_build_query() <?php $data = array( 'foo' , 'bar' , 'baz' , null , 'boom' , 'cow' => 'milk' , 'php' ... var_' ); ?> 上の例の出力は以下となります。 0=foo&1=bar&2=baz&4=boom&cow=milk&php=hypertext+processor myva ...
https://man.plustar.jp/php/function.http-build-query.html - [similar]
Manipulation 7640
« Threaded::isTerminated Threaded::notify » PHP Manual Threaded Manipulation Threaded::merge (PE ... dClass (); $stdClass -> foo = "foo" ; $stdClass -> bar = "bar" ; $stdClass -> baz = "baz" ; $safe = new T ... ded (); $safe -> merge ( $array ); $safe -> foo = "bar" ; $safe -> merge ( $stdClass , false ); var_dump ... ["8"]=> int(8) ["9"]=> int(9) ["foo"]=> string(3) "bar" ["bar"]=> string(3) "bar" ["baz"]=> string(3) "ba ... キーワード: int , Manipulation , Threaded , merge , bar , string , data , into , baz , overwrite ...
https://man.plustar.jp/php/threaded.merge.html - [similar]
値を JSON 形式にして返す 7600
« json_decode json_last_error_msg » PHP Manual JSON 関数 値を JSON 形式にして返す json_encode (P ... かのフラグを表示する例 <?php $a = array( '<foo>' , "'bar'" , '"baz"' , '&blong&' , "\xc3\xa9" ); echo "Norm ... SON_FORCE_OBJECT ), "\n\n" ; $d = array( 'foo' => 'bar' , 'baz' => 'long' ); echo "Associative array alwa ... 上の例の出力は以下となります。 Normal: ["<foo>","'bar'","\"baz\"","&blong&","\u00e9"] Tags: ["\u003Cfoo\ ... u003E","'bar'","\"baz\"","&blong&","\u00e9"] Apos: ["<foo>","\u ...
https://man.plustar.jp/php/function.json-encode.html - [similar]
配列 7600
« 数値形式の文字列 Iterable » PHP Manual 型 配列 配列 PHP の配列は、実際には順番付けられたマップ ... シンプルな配列定義 <?php $array = array( "foo" => "bar" , "bar" => "foo" , ); // 配列の短縮構文 $array = ... [ "foo" => "bar" , "bar" => "foo" , ]; ?> key は、 整数 または 文字 ... 文字列のキーの混在例 <?php $array = array( "foo" => "bar" , "bar" => "foo" , 100 => - 100 , - 100 => 100 , ... 力は以下となります。 array(4) { ["foo"]=> string(3) "bar" ["bar"]=> string(3) "foo" [100]=> int(-100) [-100 ...
https://man.plustar.jp/php/language.types.array.html - [similar]
修飾子の名前を取得する 7499
« Reflection::export ReflectionClass » PHP Manual Reflection 修飾子の名前を取得する Reflection:: ... static function foo () { return; } public function bar () { return; } } $foo = new ReflectionMethod ( 'Te ... odifierNames ( $foo -> getModifiers ())) . "\n" ; $bar = new ReflectionMethod ( 'Testing' , 'bar' ); echo ... "Modifiers for method bar():\n" ; echo $bar -> getModifiers () . "\n" ; echo ... implode ( ' ' , Reflection :: getModifierNames ( $bar -> getModifiers ())); 上の例の出力は、 たとえば以下 ...
https://man.plustar.jp/php/reflection.getmodifiernames.html - [similar]
メソッドの修飾子を取得する 7399
« ReflectionMethod::getDeclaringClass ReflectionMethod::getPrototype » PHP Manual ReflectionMeth ... static function foo () { return; } public function bar () { return; } } $foo = new ReflectionMethod ( 'Te ... odifierNames ( $foo -> getModifiers ())) . "\n" ; $bar = new ReflectionMethod ( 'Testing' , 'bar' ); echo ... "Modifiers for method bar():\n" ; echo $bar -> getModifiers () . "\n" ; echo ... implode ( ' ' , Reflection :: getModifierNames ( $bar -> getModifiers ())); ?> 上の例の出力は、 たとえば ...
https://man.plustar.jp/php/reflectionmethod.getmodifiers.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT