Results of 391 - 400 of about 2375 for New (0.121 sec.)
- 指定したインデックスに新しい値をセットする 2446
- « ArrayObject::offsetGet ArrayObject::offsetUnset » PHP Manual ArrayObject 指定したインデックスに
...
{ public $property = 'prop:public' ; } $arrayobj = new ArrayObject (new Example ()); $arrayobj -> offsetS ...
g1' , 'g2' )); var_dump ( $arrayobj ); $arrayobj = new ArrayObject (array( 'zero' , 'one' )); $arrayobj - ...
-
https://man.plustar.jp/php/arrayobject.offsetset.html
- [similar]
- 新しい DOMAttr オブジェクトを作成する 2446
- « DOMAttr DOMAttr::isId » PHP Manual DOMAttr 新しい DOMAttr オブジェクトを作成する DOMAttr::__co
...
新しい DOMAttr オブジェクトを作成する <?php $dom = new DOMDocument ( '1.0' , 'iso-8859-1' ); $element = $ ...
dom -> appendChild (new DOMElement ( 'root' )); $attr = $element -> setAtt ...
ributeNode (new DOMAttr ( 'attr' , 'attrvalue' )); echo $dom -> sa ...
-
https://man.plustar.jp/php/domattr.construct.html
- [similar]
- 引数が、数えられる値かどうかを調べる 2446
- « is_callable is_double » PHP Manual 変数操作 関数 引数が、数えられる値かどうかを調べる is_count
...
2 , 3 ])); // bool(true) var_dump ( is_countable (new ArrayIterator ([ 'foo' , 'bar' , 'baz' ]))); // bo ...
ol(true) var_dump ( is_countable (new ArrayIterator ())); // bool(true) var_dump ( is_co ...
untable (new stdClass ())); // bool(false) 参考 is_array() - 変 ...
-
https://man.plustar.jp/php/function.is-countable.html
- [similar]
- 署名を生成する 2446
- « openssl_seal openssl_spki_export_challenge » PHP Manual OpenSSL 関数 署名を生成する openssl_si
...
$data = 'my data' ; // 新しい秘密鍵と公開鍵を作成 $new_key_pair = openssl_pkey_new (array( "private_key_b ...
> OPENSSL_KEYTYPE_RSA , )); openssl_pkey_export ( $new_key_pair , $private_key_pem ); $details = openssl_ ...
pkey_get_details ( $new_key_pair ); $public_key_pem = $details [ 'key' ]; ...
-
https://man.plustar.jp/php/function.openssl-sign.html
- [similar]
- 辞書をオープンする際に使用する設定を作成する 2446
- « pspell_clear_session pspell_config_data_dir » PHP Manual Pspell 関数 辞書をオープンする際に使用
...
定を作成します。 pspell_config_create() は、 pspell_new() の構文に非常によく似ています。実際、 pspell_new_ ...
となります。しかし、新しい設定を作成した後、 pspell_new_config() をコールする前に関数 pspell_config_*() を ...
/var/dictionaries/custom.repl" ); $pspell = pspell_new_personal ( $pspell_config , "en" ); ?> 関連キーワー ...
-
https://man.plustar.jp/php/function.pspell-config-create.html
- [similar]
- 新しいオブジェクトを生成する際に、クラスの代わりにモックを使う 2446
- « uopz_set_hook uopz_set_property » PHP Manual Uopz 関数 新しいオブジェクトを生成する際に、クラス
...
; } } uopz_set_mock ( A ::class, mockA ::class); (new A )-> who (); ?> 上の例の出力は以下となります。 mo ...
who () { echo "A" ; } } uopz_set_mock ( A ::class, new class { public function who () { echo "mockA" ; } ...
}); (new A )-> who (); ?> 上の例の出力は以下となります。 mo ...
who () { echo "A" ; } } uopz_set_mock ( A ::class, new class { const CON = 'mockA' ; public static functi ...
-
https://man.plustar.jp/php/function.uopz-set-mock.html
- [similar]
- Sets a type map to use for BSON unserialization 2446
- « MongoDB\Driver\Cursor::rewind MongoDB\Driver\Cursor::toArray » PHP Manual MongoDB\Driver\Curso
...
iver\Cursor::setTypeMap() example <?php $manager = new MongoDB \ Driver \ Manager ( "mongodb://localhost: ...
27017" ); $bulk = new MongoDB \ Driver \ BulkWrite ; $id = $bulk -> inse ...
uteBulkWrite ( 'db.collection' , $bulk ); $query = new MongoDB \ Driver \ Query ([ '_id' => $id ]); $curs ...
-
https://man.plustar.jp/php/mongodb-driver-cursor.settypemap.html
- [similar]
- Returns any write concern error that occurred 2446
- « MongoDB\Driver\WriteResult::getUpsertedIds MongoDB\Driver\WriteResult::getWriteErrors » PHP Ma
...
t::getWriteConcernError() example <?php $manager = new MongoDB \ Driver \ Manager ( "mongodb://rs1.exampl ...
2.example.com/?replicaSet=myReplicaSet" ); $bulk = new MongoDB \ Driver \ BulkWrite ; $bulk -> insert ([ ...
'x' => 1 ]); $writeConcern = new MongoDB \ Driver \ WriteConcern ( 2 , 1 ); try { $ ...
-
https://man.plustar.jp/php/mongodb-driver-writeresult.getwriteconcernerror.html
- [similar]
- Lexer examples 2446
- « 例 Parser examples » PHP Manual 例 Lexer examples Lexer examples 例1 Tokenize comma separated
...
*/ $tokenIdToName = array_flip ( $token ); $lex = new Lexer ; $lex -> push ( "[\x2c]" , $token [ "COMMA" ...
(); if ( Token :: UNKNOWN == $tok -> id ) { throw new LexerException ( "Unknown token ' { $tok -> value ...
atement <?php use Parle \{ Token , Lexer }; $lex = new Lexer ; $lex -> push ( "\$[a-zA-Z_][a-zA-Z0-9_]*" ...
-
https://man.plustar.jp/php/parle.examples.lexer.html
- [similar]
- 指定された種類のトークンかを調べる 2446
- « PhpToken::getTokenName PhpToken::isIgnorable » PHP Manual PhpToken 指定された種類のトークンかを
...
返します。 例 例1 PhpToken::is() の例 <?php $token = new PhpToken ( T_ECHO , 'echo' ); var_dump ( $token -> ...
T_CLASS , T_INTERFACE , T_TRAIT ]); } $interface = new PhpToken ( T_INTERFACE , 'interface' ); var_dump ( ...
Type ( $interface )); // -> bool(true) $function = new PhpToken ( T_FUNCTION , 'function' ); var_dump ( i ...
-
https://man.plustar.jp/php/phptoken.is.html
- [similar]