検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 418 for Foo (0.020 sec.)
Removes previously set hook on function or method 5947
« uopz_undefine uopz_unset_mock » PHP Manual Uopz 関数 Removes previously set hook on function o ... 例 例1 Basic uopz_unset_hook() Usage <?php function foo () { echo 'foo' ; } uopz_set_hook ( 'foo' , functi ... on () {echo 'bar' ;}); foo (); echo PHP_EOL ; uopz_unset_hook ( 'foo' ); foo ... (); ?> 上の例の出力は以下となります。 barfoo foo 参考 uopz_set_hook() - Sets hook to execute wh ...
https://man.plustar.jp/php/function.uopz-unset-hook.html - [similar]
Dynamically changes the code of the given method 5913
« runkit7_method_copy runkit7_method_remove » PHP Manual runkit7 関数 Dynamically changes the co ... _redefine() example <?php class Example { function foo () { return "foo!\n" ; } } // create an Example ob ... ject $e = new Example (); // output Example::foo() (before redefine) echo "Before: " . $e -> foo () ... ; // Redefine the 'foo' method runkit7_method_redefine ( 'Example' , 'foo ... r!\n";' , RUNKIT7_ACC_PUBLIC ); // output Example::foo() (after redefine) echo "After: " . $e -> foo (); ...
https://man.plustar.jp/php/function.runkit7-method-redefine.html - [similar]
5880
« ストリームのエラー ストリームラッパーとして登録するクラスの例 » PHP Manual ストリーム 例 例 目 ... 出す */ $localfile = file_get_contents ( "/home/bar/foo.txt" ); /* 上と同一だが、明示的に FILE スキームを指 ... $localfile = file_get_contents ( "file:///home/bar/foo.txt" ); /* HTTP を利用し、www.example.com にあるリ ... file = file_get_contents ( "http://www.example.com/foo.txt" ); /* HTTPS を利用し、www.example.com にあるリ ... ile = file_get_contents ( "https://www.example.com/foo.txt" ); /* FTP を利用し、ftp.example.com にあるリモ ...
https://man.plustar.jp/php/stream.examples.html - [similar]
値を JSON 形式にして返す 5854
« json_decode json_last_error_msg » PHP Manual JSON 関数 値を JSON 形式にして返す json_encode (P ... 中のいくつかのフラグを表示する例 <?php $a = array( '<foo>' , "'bar'" , '"baz"' , '&blong&' , "\xc3\xa9" ); ... ( $c , JSON_FORCE_OBJECT ), "\n\n" ; $d = array( 'foo' => 'bar' , 'baz' => 'long' ); echo "Associative a ... \n" ; ?> 上の例の出力は以下となります。 Normal: ["<foo>","'bar'","\"baz\"","&blong&","\u00e9"] Tags: ["\u ... 003Cfoo\u003E","'bar'","\"baz\"","&blong&","\u00e9"] Apos: ...
https://man.plustar.jp/php/function.json-encode.html - [similar]
言明 5854
« 後方参照 再試行無しのサブパターン » PHP Manual PCRE 正規表現構文 言明 言明 言明 (assertion) と ... ッチ対象それ自体にはセミコロンは含まれません。また、 foo(?!bar) は、"bar" が後ろに続かない "foo" にマッチし ... ます。 なお、一見、良く似たパターンですが (?!foo)bar は、"foo" 以外のものの後にある "bar" を見つける ... してしまいます。 続く 3 文字が "bar" である場合、 (?!foo) は常に真となってしまうからです。 このような探索を ... 、 否定の言明の場合 (?<! で始まります。例えば、 (?<!foo)bar は、"foo" 以外の後にある "bar" の存在を見つける ...
https://man.plustar.jp/php/regexp.reference.assertions.html - [similar]
オブジェクトと参照 5821
« 遅延静的束縛 (Late Static Bindings) オブジェクトのシリアライズ » PHP Manual クラスとオブジェク ... す。 例1 参照とオブジェクト <?php class A { public $foo = 1 ; } $a = new A ; $b = $a ; // $a と $b は同じ ... ID を持つコピーです // ($a) = ($b) = <id> $b -> foo = 2 ; echo $a -> foo . "\n" ; $c = new A ; $d = & ... c ; // $c と $d は参照です // ($c,$d) = <id> $d -> foo = 2 ; echo $c -> foo . "\n" ; $e = new A ; functio ... n foo ( $obj ) { // ($obj) = ($e) = <id> $obj -> foo = 2 ...
https://man.plustar.jp/php/language.oop5.references.html - [similar]
指定したノードの子ノードを見付ける 5787
« SimpleXMLElement::attributes SimpleXMLElement::__construct » PHP Manual SimpleXMLElement 指定し ... on 例2 名前空間の使用 <?php $xml = '<example xmlns:foo="my.foo.urn"> <foo:a>Apple</foo:a> <foo:b>Banana</ ... leXMLElement ( $xml ); $kids = $sxe -> children ( 'foo' ); var_dump ( count ( $kids )); $kids = $sxe -> c ... hildren ( 'foo' , TRUE ); var_dump ( count ( $kids )); $kids = $s ... xe -> children ( 'my.foo.urn' ); var_dump ( count ( $kids )); $kids = $sxe ...
https://man.plustar.jp/php/simplexmlelement.children.html - [similar]
Sets value of existing class or instance property 5761
« uopz_set_mock uopz_set_return » PHP Manual Uopz 関数 Sets value of existing class or instance ... 例 例1 Basic uopz_set_property() Usage <?php class Foo { private static $staticBar ; private $bar ; publi ... c function testBar () { return $this -> bar ; } } $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]
エントリが存在するかどうかを調べる 5728
« apcu_entry apcu_fetch » PHP Manual APCu 関数 エントリが存在するかどうかを調べる apcu_exists (P ... uit = 'apple' ; $veggie = 'carrot' ; apcu_store ( 'foo' , $fruit ); apcu_store ( 'bar' , $veggie ); if ( ... apcu_exists ( 'foo' )) { echo "Foo exists: " ; echo apcu_fetch ( 'foo ... ' ); } else { echo "Foo does not exist" ; } echo PHP_EOL ; if ( apcu_exist ... st" ; } echo PHP_EOL ; $ret = apcu_exists (array( 'foo' , 'donotexist' , 'bar' )); var_dump ( $ret ); ?> ...
https://man.plustar.jp/php/function.apcu-exists.html - [similar]
文字列の各単語の最初の文字を大文字にする 5635
« ucfirst utf8_decode » PHP Manual String 関数 文字列の各単語の最初の文字を大文字にする ucwords ... 後の文字列を返します。 例 例1 ucwords() の例 <?php $foo = 'hello world!' ; $foo = ucwords ( $foo ); // Hel ... ?> 例2 ucwords() で、区切り文字を指定する例 <?php $foo = 'hello|world!' ; $bar = ucwords ( $foo ); // Hel ... lo|world! $baz = ucwords ( $foo , "|" ); // Hello|World! ?> 例3 ucwords() で、追加 ... の区切り文字を指定する例 <?php $foo = "mike o'hara" ; $bar = ucwords ( $foo ); // Mike ...
https://man.plustar.jp/php/function.ucwords.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 NEXT