« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 16 for doesnotexist (0.004 sec.)
指定したファイルの PharFileInfo オブジェクトを取得する 13550
« Phar::offsetExists Phar::offsetSet » PHP Manual Phar 指定したファイルの PharFileInfo オブジェクトを取得する 検索 Phar::offsetGet (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0) Phar::offsetGet — 指定したファイルの PharFileInfo オブジェ ... $p [ 'exists.txt' ] = "file exists\n" ; try { // 自動的に offsetGet() をコールします echo $p [ 'exists.txt' ]; echo $p [ 'doesnotexist.txt' ]; } catch ( BadMethodCallException $e ) { echo $e ; } ?> 上の例の出力は以下となります。 file exists Entry doesnotexi ... st.txt does not exist 参考 Phar::offsetExists() - ファイルが phar 内に存在するかどうかを調べる Phar::offsetSet() - 内部ファイルに、外部ファイル ... exists アーカイブ offsetExists offsetSet localName ArrayAccess インターフェイス 実装 BadMethodCallException 自動的 myphar doesnotexist SplFileInfo 角括弧 相対 演算子 dirname catch Entry exist 参考 ...
https://man.mtool.work/php/8.3/phar.offsetget.html
pg_last_error が返すコンテクストのエラーメッセージのアクセス権を設定する 11471
« pg_set_client_encoding pg_set_error_verbosity » PHP Manual PostgreSQL 関数 pg_last_error が返すコンテクストのエラーメッセージのアクセス権を設定する 検索 pg_set_error_context_visibility (PHP 8 >= 8.3.0) pg_set_error_context_visibility — pg ... blisher" ) or die( "Could not connect" ); if (! pg_connection_busy ( $dbconn )) { pg_send_query ( $dbconn , "select * from doesnotexist;" ); } pg_set_error_context_visibility ( $dbconn , PGSQL_SHOW_CONTEXT_ALWAYS ); $res1 = pg_get_result ( $dbconn ); echo pg ... nection PgSql Connection connect client encoding verbosity PostgreSQL インスタンス レベル dbname publisher busy send query doesnotexist 参考 特定 ...
https://man.mtool.work/php/8.3/function.pg-set-error-context-visibility.html
指定したファイルの PharFileInfo オブジェクトを取得する 10865
« Phar::offsetExists Phar::offsetSet » PHP Manual Phar 指定したファイルの PharFileInfo オブジェクトを取得する 検索 Phar::offsetGet (PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0) Phar::offsetGet — 指定したファイルの PharFileInfo オブジェ ... $p [ 'exists.txt' ] = "file exists\n" ; try { // 自動的に offsetGet() をコールします echo $p [ 'exists.txt' ]; echo $p [ 'doesnotexist.txt' ]; } catch ( BadMethodCallException $e ) { echo $e ; } ?> 上の例の出力は以下となります。 file exists Entry doesnotexi ... st.txt does not exist 参考 Phar::offsetExists() - ファイルが phar 内に存在するかどうかを調べる Phar::offsetSet() - 内部ファイルに、外部ファイル ...
https://man.mtool.work/php/8.3/phar.offsetget.html
複数の変数を受け取り、オプションでそれらをフィルタリングする 8785
« filter_var Filter\FilterException » PHP Manual Filter 関数 複数の変数を受け取り、オプションでそれらをフィルタリングする 検索 filter_var_array (PHP 5 >= 5.2.0, PHP 7, PHP 8) filter_var_array — 複数の変数を受け取り、オプションでそれらをフィ ... lags' => FILTER_REQUIRE_SCALAR , ], 'testarray' => [ 'filter' => FILTER_VALIDATE_INT , 'flags' => FILTER_FORCE_ARRAY , ], 'doesnotexist' => FILTER_VALIDATE_INT , ]; var_dump ( filter_var_array ( $data , $filters )); ?> 上の例の出力は以下となります。 array(6) ... [0]=> int(10) } ["versions"]=> string(6) "2.0.33" ["testscalar"]=> bool(false) ["testarray"]=> array(1) { [0]=> int(2) } ["doesnotexist"]=> NULL } 例2 ひとつのフィルタをすべての値に適用する options が整数の場合は、 配列のすべてのエントリに同じフィルタが適用さ ...
https://man.mtool.work/php/8.3/function.filter-var-array.html
複数の変数を受け取り、オプションでそれらをフィルタリングする 8785
« filter_var Filter\FilterException » PHP Manual Filter 関数 複数の変数を受け取り、オプションでそれらをフィルタリングする 検索 filter_var_array (PHP 5 >= 5.2.0, PHP 7, PHP 8) filter_var_array — 複数の変数を受け取り、オプションでそれらをフィ ... lags' => FILTER_REQUIRE_SCALAR , ], 'testarray' => [ 'filter' => FILTER_VALIDATE_INT , 'flags' => FILTER_FORCE_ARRAY , ], 'doesnotexist' => FILTER_VALIDATE_INT , ]; var_dump ( filter_var_array ( $data , $filters )); ?> 上の例の出力は以下となります。 array(6) ... [0]=> int(10) } ["versions"]=> string(6) "2.0.33" ["testscalar"]=> bool(false) ["testarray"]=> array(1) { [0]=> int(2) } ["doesnotexist"]=> NULL } 例2 ひとつのフィルタをすべての値に適用する options が整数の場合は、 配列のすべてのエントリに同じフィルタが適用さ ...
https://man.mtool.work/php/8.3/function.filter-var-array.html
pg_last_error が返すコンテクストのエラーメッセージのアクセス権を設定する 8491
« pg_set_client_encoding pg_set_error_verbosity » PHP Manual PostgreSQL 関数 pg_last_error が返すコンテクストのエラーメッセージのアクセス権を設定する 検索 pg_set_error_context_visibility (PHP 8 >= 8.3.0) pg_set_error_context_visibility — pg ... blisher" ) or die( "Could not connect" ); if (! pg_connection_busy ( $dbconn )) { pg_send_query ( $dbconn , "select * from doesnotexist;" ); } pg_set_error_context_visibility ( $dbconn , PGSQL_SHOW_CONTEXT_ALWAYS ); $res1 = pg_get_result ( $dbconn ); echo pg ...
https://man.mtool.work/php/8.3/function.pg-set-error-context-visibility.html
特定の接続から直近のエラーメッセージ文字列を取得する 7884
« pg_jit pg_last_notice » PHP Manual PostgreSQL 関数 特定の接続から直近のエラーメッセージ文字列を取得する 検索 pg_last_error (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) pg_last_error — 特定の接続から直近のエラーメッセージ文字列を取得する 説明 fun ... nect ( "dbname=publisher" ) or die( "接続できませんでした" ); // 失敗するクエリ $res = pg_query ( $dbconn , "select * from doesnotexist" ); echo pg_last_error ( $dbconn ); ?> 参考 pg_result_error() - 結果に関連するエラーメッセージを取得する pg_result_error_f ...
https://man.mtool.work/php/8.3/function.pg-last-error.html
エラー報告の各フィールドを返す 7884
« pg_result_error pg_result_memory_size » PHP Manual PostgreSQL 関数 エラー報告の各フィールドを返す 検索 pg_result_error_field (PHP 5 >= 5.1.0, PHP 7, PHP 8) pg_result_error_field — エラー報告の各フィールドを返す 説明 function pg_result_err ... blisher" ) or die( "Could not connect" ); if (! pg_connection_busy ( $dbconn )) { pg_send_query ( $dbconn , "select * from doesnotexist;" ); } $res1 = pg_get_result ( $dbconn ); echo pg_result_error_field ( $res1 , PGSQL_DIAG_SQLSTATE ); ?> 参考 pg_result_er ...
https://man.mtool.work/php/8.3/function.pg-result-error-field.html
結果に関連するエラーメッセージを取得する 7884
« pg_query_params pg_result_error_field » PHP Manual PostgreSQL 関数 結果に関連するエラーメッセージを取得する 検索 pg_result_error (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) pg_result_error — 結果に関連するエラーメッセージを取得する 説明 functio ... sher" ) or die( "接続できませんでした" ); if (! pg_connection_busy ( $dbconn )) { pg_send_query ( $dbconn , "select * from doesnotexist;" ); } $res1 = pg_get_result ( $dbconn ); echo pg_result_error ( $res1 ); ?> 参考 pg_result_error_field() - エラー報告の各 ...
https://man.mtool.work/php/8.3/function.pg-result-error.html
特定の接続から直近のエラーメッセージ文字列を取得する 7884
« pg_jit pg_last_notice » PHP Manual PostgreSQL 関数 特定の接続から直近のエラーメッセージ文字列を取得する 検索 pg_last_error (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) pg_last_error — 特定の接続から直近のエラーメッセージ文字列を取得する 説明 fun ... nect ( "dbname=publisher" ) or die( "接続できませんでした" ); // 失敗するクエリ $res = pg_query ( $dbconn , "select * from doesnotexist" ); echo pg_last_error ( $dbconn ); ?> 参考 pg_result_error() - 結果に関連するエラーメッセージを取得する pg_result_error_f ...
https://man.mtool.work/php/8.3/function.pg-last-error.html
PREV 1 2 NEXT