Results of 141 - 150 of about 418 for Foo (0.012 sec.)
- Provides an array or document to serialize as BSON 4291
- « MongoDB\BSON\Serializable MongoDB\BSON\Unserializable » PHP Manual MongoDB\BSON\Serializable P
...
sonSerialize () { return [ '_id' => $this -> id , 'foo' => 'bar' ]; } } $bson = MongoDB \ BSON \ fromPHP ...
"_id" : { "$oid" : "56cccdcada14d8755a58c591" }, "foo" : "bar" } 例2 MongoDB\BSON\Serializable::bsonSeri ...
rializable { function bsonSerialize () { return [ 'foo' => 'bar' ]; } } $value = [ 'document' => new MyDo ...
> 上の例の出力は以下となります。 { "document" : { "foo" : "bar" } } 例4 MongoDB\BSON\Serializable::bsonSe ...
-
https://man.plustar.jp/php/mongodb-bson-serializable.bsonserialize.html
- [similar]
- ReflectionProperty オブジェクトを作成する 4291
- « ReflectionProperty::__clone ReflectionProperty::export » PHP Manual ReflectionProperty Reflect
...
および protected プロパティの値の取得 <?php class Foo { public $x = 1 ; protected $y = 2 ; private $z = ...
3 ; } $obj = new Foo ; $prop = new ReflectionProperty ( 'Foo' , 'y' ); ...
bj )); // int(2) $prop = new ReflectionProperty ( 'Foo' , 'z' ); $prop -> setAccessible ( true ); var_dum ...
-
https://man.plustar.jp/php/reflectionproperty.construct.html
- [similar]
- 実行する SQL 文を準備する 4291
- « SQLite3::openBlob SQLite3::query » PHP Manual SQLite3 実行する SQL 文を準備する SQLite3::prepa
...
3 ( 'mysqlitedb.db' ); $db -> exec ( 'CREATE TABLE foo (id INTEGER, bar STRING)' ); $db -> exec ( "INSERT ...
INTO foo (id, bar) VALUES (1, 'This is a test')" ); $stmt = ...
$db -> prepare ( 'SELECT bar FROM foo WHERE id=:id' ); $stmt -> bindValue ( ':id' , 1 , ...
-
https://man.plustar.jp/php/sqlite3.prepare.html
- [similar]
- ランダムな鍵を生成する 4258
- « sodium_crypto_core_ristretto255_is_valid_point sodium_crypto_core_ristretto255_scalar_add » PH
...
dium_crypto_core_ristretto255_random() の例 <?php $foo = sodium_crypto_core_ristretto255_random (); $bar ...
); $value = sodium_crypto_core_ristretto255_add ( $foo , $bar ); $value = sodium_crypto_core_ristretto255 ...
_sub ( $value , $bar ); var_dump ( hash_equals ( $foo , $value )); ?> 上の例の出力は以下となります。 boo ...
-
https://man.plustar.jp/php/function.sodium-crypto-core-ristretto255-random.html
- [similar]
- ランダムな鍵を生成する 4258
- « sodium_crypto_core_ristretto255_scalar_negate sodium_crypto_core_ristretto255_scalar_reduce »
...
ypto_core_ristretto255_scalar_random() の例 <?php $foo = sodium_crypto_core_ristretto255_scalar_random () ...
ue = sodium_crypto_core_ristretto255_scalar_add ( $foo , $bar ); $value = sodium_crypto_core_ristretto255 ...
r_sub ( $value , $bar ); var_dump ( hash_equals ( $foo , $value )); ?> 上の例の出力は以下となります。 boo ...
-
https://man.plustar.jp/php/function.sodium-crypto-core-ristretto255-scalar-rando...
- [similar]
- 格納されている変数をキャッシュから取り除く 4224
- « apcu_dec apcu_enabled » PHP Manual APCu 関数 格納されている変数をキャッシュから取り除く apcu_d
...
u_delete() の例 <?php $bar = 'BAR' ; apcu_store ( 'foo' , $bar ); apcu_delete ( 'foo' ); // もちろん、この ...
複数のキーを削除することもできます。 apcu_delete ([ 'foo' , 'bar' , 'baz' ]); // または、正規表現とともに I ...
-
https://man.plustar.jp/php/function.apcu-delete.html
- [similar]
- スカラー値を追加する 4224
- « sodium_crypto_core_ristretto255_random sodium_crypto_core_ristretto255_scalar_complement » PHP
...
_crypto_core_ristretto255_scalar_add() の例 <?php $foo = sodium_crypto_core_ristretto255_scalar_random () ...
ue = sodium_crypto_core_ristretto255_scalar_add ( $foo , $bar ); $value = sodium_crypto_core_ristretto255 ...
r_sub ( $value , $bar ); var_dump ( hash_equals ( $foo , $value )); ?> 上の例の出力は以下となります。 boo ...
-
https://man.plustar.jp/php/function.sodium-crypto-core-ristretto255-scalar-add.h...
- [similar]
- スカラー値を減らす 4224
- « sodium_crypto_core_ristretto255_scalar_reduce sodium_crypto_core_ristretto255_sub » PHP Manual
...
_crypto_core_ristretto255_scalar_sub() の例 <?php $foo = sodium_crypto_core_ristretto255_scalar_random () ...
ue = sodium_crypto_core_ristretto255_scalar_add ( $foo , $bar ); $value = sodium_crypto_core_ristretto255 ...
r_sub ( $value , $bar ); var_dump ( hash_equals ( $foo , $value )); ?> 上の例の出力は以下となります。 boo ...
-
https://man.plustar.jp/php/function.sodium-crypto-core-ristretto255-scalar-sub.h...
- [similar]
- クラスのインスタンスであるかどうかを調べる 4224
- « ReflectionClass::isFinal ReflectionClass::isInstantiable » PHP Manual ReflectionClass クラスの
...
の例 <?php // 使用例 $class = new ReflectionClass ( 'Foo' ); if ( $class -> isInstance ( $arg )) { echo "Ye ...
s" ; } // これも同じ意味です if ( $arg instanceof Foo ) { echo "Yes" ; } // これも同じ意味です if ( is_a ...
( $arg , 'Foo' )) { echo "Yes" ; } ?> 上の例の出力は、 たとえば以 ...
-
https://man.plustar.jp/php/reflectionclass.isinstance.html
- [similar]
- 要素の属性を定義する 4224
- « SimpleXMLElement::asXML SimpleXMLElement::children » PHP Manual SimpleXMLElement 要素の属性を定
...
例1 XML文字列を解釈する <?php $string = <<<XML <a> <foo name="one" game="lonely">1</foo> </a> XML; $xml = ...
implexml_load_string ( $string ); foreach( $xml -> foo [ 0 ]-> attributes () as $a => $b ) { echo $a , '= ...
-
https://man.plustar.jp/php/simplexmlelement.attributes.html
- [similar]