« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 158 for getCode (0.004 sec.)
Error::getCode — エラーコードを取得する | PHP 8.3 11762
Error::getCode (PHP 7, PHP 8) Error::getCode — エラーコードを取得する 説明 final public function Error::getCode (): int エラーコードを返します パラメータ この関数にはパラメータはありません。 戻り値 エラーコードを int 型として返します 例 例1 ... Error::getCode() の例 <?php try { throw new Error ( "Some error message" , 30 ); } catch( Error $e ) { echo "The Error code is: " . $e -> ... getCode (); } ?> 上の例の出力は、 たとえば以下のようになります。 The Error code is: 30 参考 Throwable::getCode() - 例外コードを取得 ...
https://man.mtool.work/php/8.3/error.getcode.html
Exception::getCode — 例外コードを取得する | PHP 8.3 11577
Exception::getCode (PHP 5, PHP 7, PHP 8) Exception::getCode — 例外コードを取得する 説明 final public function Exception::getCode (): int 例外コードを返します。 パラメータ この関数にはパラメータはありません。 戻り値 例外コードを整数値で返しま ... tion クラスを継承したクラスでは、違う型を返すこともあります (たとえば PDOException は文字列を返します)。 例 例1 Exception::getCode() の例 <?php try { throw new Exception ( "Some error message" , 30 ); } catch( Exception $e ) { echo "The exception code i ... s: " . $e -> getCode (); } ?> 上の例の出力は、 たとえば以下のようになります。 The exception code is: 30 参考 Throwable::getCode() - 例外コードを ...
https://man.mtool.work/php/8.3/exception.getcode.html
MongoDB\BSON\Javascript::getCode — Returns the Javascript's code | PHP 8.3 11105
MongoDB\BSON\Javascript::getCode (mongodb >=1.2.0) MongoDB\BSON\Javascript::getCode — Returns the Javascript's code 説明 final public function MongoDB\BSON\Javascript::getCode (): string パラメータ この関数にはパラメータはありません。 戻り値 ... 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\BSON\Javascript::getCode() example <?php $js = new MongoDB\BSON\Javascript ( 'function foo(bar) { return bar; }' ); var_dump ( $js -> getCode ()); ...
https://man.mtool.work/php/8.3/mongodb-bson-javascript.getcode.html
MongoDB\BSON\JavascriptInterface::getCode — Returns the JavascriptInterface's c... 10633
MongoDB\BSON\JavascriptInterface::getCode (mongodb >=1.3.0) MongoDB\BSON\JavascriptInterface::getCode — Returns the JavascriptInterface's code 説明 abstract public function MongoDB\BSON\JavascriptInterface::getCode (): string パラメータ この ... 関数にはパラメータはありません。 戻り値 Returns the JavascriptInterface's code. 参考 MongoDB\BSON\Javascript::getCode() - Returns the Javascript's code ...
https://man.mtool.work/php/8.3/mongodb-bson-javascriptinterface.getcode.html
MongoDB\Driver\WriteError::getCode — Returns the WriteError's error code | PHP ... 10540
MongoDB\Driver\WriteError::getCode (mongodb >=1.0.0) MongoDB\Driver\WriteError::getCode — Returns the WriteError's error code 説明 final public function MongoDB\Driver\WriteError::getCode (): int パラメータ この関数にはパラメータはありません ... 例外 Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\WriteError::getCode() example <?php $manager = new MongoDB\Driver\Manager ; $bulk = new MongoDB\Driver\BulkWrite ; $bulk -> insert ([ '_id' => ... } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteErrors ()[ 0 ]-> getCode ()); } ?> 上の例の出力は、 たとえば以下のようになります。 int(11000) ...
https://man.mtool.work/php/8.3/mongodb-driver-writeerror.getcode.html
MongoDB\Driver\WriteConcernError::getCode — Returns the WriteConcernError's err... 10264
MongoDB\Driver\WriteConcernError::getCode (mongodb >=1.0.0) MongoDB\Driver\WriteConcernError::getCode — Returns the WriteConcernError's error code 説明 final public function MongoDB\Driver\WriteConcernError::getCode (): int パラメータ この関 ... ows MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors. 例 例1 MongoDB\Driver\WriteConcernError::getCode() example <?php $manager = new MongoDB\Driver\Manager ( "mongodb://rs1.example.com,rs2.example.com/?replicaSet=myReplicaSe ... } catch( MongoDB\Driver\Exception\BulkWriteException $e ) { var_dump ( $e -> getWriteResult ()-> getWriteConcernError ()-> getCode ()); } ?> 上の例の出力は、 たとえば以下のようになります。 int(64) 参考 » Write Concern reference ...
https://man.mtool.work/php/8.3/mongodb-driver-writeconcernerror.getcode.html
Throwable::getCode — 例外コードを取得する | PHP 8.3 9792
Throwable::getCode (PHP 7, PHP 8) Throwable::getCode — 例外コードを取得する 説明 public function Throwable::getCode (): int スローされたオブジェクトのエラーコードを返します。 パラメータ この関数にはパラメータはありません。 戻り値 例外コード ... の場合は int ですが、 その派生クラスでは別の型かもしれません (たとえば PDOException の場合は string です)。 参考 Exception::getCode() - 例外コードを取得する 他のマニュアルの関連ページ Python exceptions ...
https://man.mtool.work/php/8.3/throwable.getcode.html
MongoDB\BSON\JavascriptInterface::__toString — Returns the JavascriptInterface'... 7177
MongoDB\BSON\JavascriptInterface::__toString (mongodb >=1.3.0) MongoDB\BSON\JavascriptInterface::__toString — Returns the JavascriptInterface's code 説明 abstract public function MongoDB\BSON\JavascriptInterface::__toString (): string このメ ... ソッドは次のメソッドのエイリアスです。 MongoDB\BSON\JavascriptInterface::getCode() . パラメータ この関数にはパラメータはありません。 戻り値 Returns the JavascriptInterface's code. 参考 MongoDB\BSON\Javas ... criptInterface::getCode() - Returns the JavascriptInterface's code MongoDB\BSON\Javascript::__toString() - Returns the Javascript's code ...
https://man.mtool.work/php/8.3/mongodb-bson-javascriptinterface.tostring.html
MongoDB\BSON\Javascript::__toString — Returns the Javascript's code | PHP 8.3 6889
MongoDB\BSON\Javascript::__toString (mongodb >=1.2.0) MongoDB\BSON\Javascript::__toString — Returns the Javascript's code 説明 final public function MongoDB\BSON\Javascript::__toString (): string このメソッドは次のメソッドのエイリアスです。 ... MongoDB\BSON\Javascript::getCode() . パラメータ この関数にはパラメータはありません。 戻り値 Returns the Javascript's code. 例 例1 MongoDB\BSON\Javascript:: ... bar; }' )); ?> 上の例の出力は以下となります。 string(33) "function foo(bar) { return bar; }" 参考 MongoDB\BSON\Javascript::getCode() - Returns the Javascript's code » BSON Types ...
https://man.mtool.work/php/8.3/mongodb-bson-javascript.tostring.html
The MongoDB\BSON\JavascriptInterface interface | PHP 8.3 6796
The MongoDB\BSON\JavascriptInterface interface (mongodb >=1.3.0) はじめに This interface is implemented by MongoDB\BSON\Javascript to be used as a parameter, return, or property type in userland classes. クラス概要 class MongoDB\BSON\Javasc ... riptInterface { /* メソッド */ abstract public function getCode (): string abstract public function getScope (): ? object abstract public function __toString (): string } 変更履歴 バージ ... e #[ReturnTypeWillChange] attribute can be added to silence the deprecation notice. 目次 MongoDB\BSON\JavascriptInterface::getCode — Returns the JavascriptInterface's code MongoDB\BSON\JavascriptInterface::getScope — Returns the JavascriptInterface's sc ...
https://man.mtool.work/php/8.3/class.mongodb-bson-javascriptinterface.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT