« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 15 for bogus (0.001 sec.)
除去 | PHP 8.3 13793
除去 例1 メールアドレスの検証、および不正な部分の除去 <?php $a = 'joe@example.org' ; $b = 'bogus - at - example dot org' ; $c = '(bogus@example.org)' ; $sanitized_a = filter_var ( $a , FILTER_SANITIZE_EMAIL ); if ( filter_var ( $sanitized_a ... ドレスとして有効です。 処理済の (b) はメールアドレスとして無効です。 処理済の (c) はメールアドレスとして有効です。 処理前: (bogus@example.org) 処理後: bogus@example.org 他のマニュアルの関連ページ Docker API リファレンス Docker 全てのオブジェクトに対する ...
https://man.mtool.work/php/8.3/filter.examples.sanitization.html
tidy_config_count — 指定したドキュメントについて発生した Tidy 設定エラーの数を... 10919
tidy_config_count (PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2) tidy_config_count — 指定したドキュメントについて発生した Tidy 設定エラーの数を返す 説明 function tidy_config_count ( tidy $tidy ): int 指定した Tidy オブジェクト tidy の設定時に発生 ... 戻り値 エラーの数を返します。 例 例1 tidy_config_count() の例 <?php $html = '<p>test</I>' ; $config = array( 'doctype' => 'bogus' ); $tidy = tidy_parse_string ( $html , $config ); /* 'bogus' は有効な文章型でないので、1 を出力する */ echo tidy_config_c ...
https://man.mtool.work/php/8.3/function.tidy-config-count.html
tidy::getStatus — 指定したドキュメントのステータスを取得する | PHP 8.3 10536
tidy::getStatus tidy_get_status (PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2) tidy::getStatus -- tidy_get_status — 指定したドキュメントのステータスを取得する 説明 オブジェクト指向型 public function tidy::getStatus (): int 手続き型 function tidy ... 例 <?php $html = '<p>paragraph</i>' ; $tidy = new tidy (); $tidy -> parseString ( $html ); $tidy2 = new tidy (); $html2 = '<bogus>test</bogus>' ; $tidy2 -> parseString ( $html2 ); echo $tidy -> getStatus (); //1 echo $tidy2 -> getStatus (); //2 ?> 他の ...
https://man.mtool.work/php/8.3/tidy.getstatus.html
PDO::errorInfo — データベースハンドラにおける直近の操作に関連する拡張エラー情報... 9195
PDO::errorInfo (PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.1.0) PDO::errorInfo — データベースハンドラにおける直近の操作に関連する拡張エラー情報を取得する 説明 public function PDO::errorInfo (): array パラメータ この関数にはパラメータはあり ... 接続の errorInfo() フィールドを表示する <?php /* エラーを発生させる -- 無効な SQL シンタックス */ $stmt = $dbh -> prepare ( 'bogus sql' ); if (! $stmt ) { echo "\nPDO::errorInfo():\n" ; print_r ( $dbh -> errorInfo ()); } ?> 上の例の出力は以下となります。 ... PDO::errorInfo(): Array ( [0] => HY000 [1] => 1 [2] => near "bogus": syntax error ) 参考 PDO::errorCode() - データベースハンドラにおける直近の操作に関連する SQLSTATE を取得する PDOStatement ...
https://man.mtool.work/php/8.3/pdo.errorinfo.html
検証 | PHP 8.3 9004
検証 例1 filter_var() でのメールアドレスの検証 <?php $email_a = 'joe@example.com' ; $email_b = 'bogus' ; if ( filter_var ( $email_a , FILTER_VALIDATE_EMAIL )) { echo "' $email_a ' はメールアドレスとして有効です。\n" ; } if ( filter_var ( $e ... メールアドレスとして無効です。\n" ; } ?> 上の例の出力は以下となります。 'joe@example.com' はメールアドレスとして有効です。 'bogus' はメールアドレスとして無効です。 例2 filter_var() での IP アドレスの検証 <?php $ip_a = '127.0.0.1' ; $ip_b = '42.42' ; if ...
https://man.mtool.work/php/8.3/filter.examples.validation.html
tidy_warning_count — 指定したドキュメントについて発生した Tidy 警告の数を返す |... 8237
tidy_warning_count (PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2) tidy_warning_count — 指定したドキュメントについて発生した Tidy 警告の数を返す 説明 function tidy_warning_count ( tidy $tidy ): int 指定したドキュメントについて発生した Tidy 警告の ... パラメータ tidy Tidy オブジェクト。 戻り値 警告の数を返します。 例 例1 tidy_warning_count() の例 <?php $html = '<p>test</i> <bogustag>bogus</bogustag>' ; $tidy = tidy_parse_string ( $html ); echo tidy_error_count ( $tidy ) . "\n" ; //1 echo tidy_warning ...
https://man.mtool.work/php/8.3/function.tidy-warning-count.html
mcrypt_module_self_test — 指定したモジュールのセルフテストを実行する | PHP 8.3 8046
mcrypt_module_self_test (PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0) mcrypt_module_self_test — 指定したモジュールのセルフテストを実行する 警告 この関数は PHP 7.1.0 で 非推奨 となり、PHP 7.2.0 で 削除 されました。この関数に頼 ... の例 <?php var_dump ( mcrypt_module_self_test ( MCRYPT_RIJNDAEL_128 )) . "\n" ; var_dump ( mcrypt_module_self_test ( MCRYPT_BOGUS_CYPHER )); ?> 上の例の出力は以下となります。 bool(true) bool(false) 他のマニュアルの関連ページ Python newtypes_tutorial Li ...
https://man.mtool.work/php/8.3/function.mcrypt-module-self-test.html
tidy_error_count — 指定したドキュメントについて発生した Tidy エラーの数を返す |... 8046
tidy_error_count (PHP 5, PHP 7, PHP 8, PECL tidy >= 0.5.2) tidy_error_count — 指定したドキュメントについて発生した Tidy エラーの数を返す 説明 function tidy_error_count ( tidy $tidy ): int 指定したドキュメントについて発生した Tidy エラーの数 ... パラメータ tidy Tidy オブジェクト。 戻り値 エラーの数を返します。 例 例1 tidy_error_count() の例 <?php $html = '<p>test</i> <bogustag>bogus</bogustag>' ; $tidy = tidy_parse_string ( $html ); echo tidy_error_count ( $tidy ) . "\n" ; //1 echo $tidy -> err ... - Warning: missing <!DOCTYPE> declaration line 1 column 8 - Warning: discarding unexpected </i> line 2 column 1 - Error: <bogustag> is not recognized! line 2 column 1 - Warning: discarding unexpected <bogustag> line 2 column 16 - Warning: discarding ... unexpected </bogustag> line 1 column 1 - Warning: inserting missing 'title' element 参考 tidy_access_count() - 指定したドキュメントについて発 ...
https://man.mtool.work/php/8.3/function.tidy-error-count.html
imagecreatefromgif — 新しい画像をファイルあるいは URL から作成する | PHP 8.3 7663
imagecreatefromgif (PHP 4, PHP 5, PHP 7, PHP 8) imagecreatefromgif — 新しい画像をファイルあるいは URL から作成する 説明 function imagecreatefromgif ( string $filename ): GdImage | false imagecreatefromgif() は、 指定したファイル名の画像を表 ... 1 , 5 , 5 , 'Error loading ' . $imgname , $tc ); } return $im ; } header ( 'Content-Type: image/gif' ); $img = LoadGif ( 'bogus.image' ); imagegif ( $img ); ?> 上の例の出力は、 たとえば以下のようになります。 他のマニュアルの関連ページ Linux JM fopen( ...
https://man.mtool.work/php/8.3/function.imagecreatefromgif.html
imagecreatefromjpeg — 新しい画像をファイルあるいは URL から作成する | PHP 8.3 7663
imagecreatefromjpeg (PHP 4, PHP 5, PHP 7, PHP 8) imagecreatefromjpeg — 新しい画像をファイルあるいは URL から作成する 説明 function imagecreatefromjpeg ( string $filename ): GdImage | false imagecreatefromjpeg() は引数 filename から得られる画 ... , 5 , 5 , 'Error loading ' . $imgname , $tc ); } return $im ; } header ( 'Content-Type: image/jpeg' ); $img = LoadJpeg ( 'bogus.image' ); imagejpeg ( $img ); ?> 上の例の出力は、 たとえば以下のようになります。 他のマニュアルの関連ページ Linux JM fopen ...
https://man.mtool.work/php/8.3/function.imagecreatefromjpeg.html
PREV 1 2 NEXT