« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 62 for quote (0.002 sec.)
preg_quote — 正規表現文字をクオートする | PHP 8.3 12079
preg_quote (PHP 4, PHP 5, PHP 7, PHP 8) preg_quote — 正規表現文字をクオートする 説明 function preg_quote ( string $str , ? string $delimiter = null ): string preg_quote() は、 str を引数とし、正規表現構文の特殊文字の前にバックスラッシュを挿 ... 、次のものです。 . \ + * ? [ ^ ] $ ( ) { } = ! < > | : - # / は正規表現の特殊文字ではないことに注意しましょう。 注意 : preg_quote() は、 preg_replace() などにおける $replacement 文字列に使うことを想定したものではありません。 パラメータ str 入力文字列。 ... 履歴 バージョン 説明 7.3.0 # 文字がクォートされるようになりました。 7.2.0 delimiter は、nullable になりました。 例 例1 preg_quote() の例 <?php $keywords = '$40 for a g3/400' ; $keywords = preg_quote ( $keywords , '/' ); echo $keywords ; // \$40 for a g ... 3\/400 を返します ?> 例2 テキスト内の単語の斜体変換 <?php // この例では、preg_quote($word) を使って、アスタリスクが // 正規表現での特殊な意味を帯びないようにしています $textbody = "This book is *very* diffi ...
https://man.mtool.work/php/8.3/function.preg-quote.html
DOMXPath::quote — XPath 式で使用できるよう、文字列のまわりに引用符を付ける | PH... 11920
DOMXPath::quote (PHP 8 >= 8.4.0) DOMXPath::quote — XPath 式で使用できるよう、文字列のまわりに引用符を付ける 説明 public static function DOMXPath::quote ( string $str ): string XPath 式で使用できるよう、 str のまわりに引用符を付けます。 パラ ... 字列を返します。 例 例1 引用符を含む属性値の変換 <?php $doc = new DOMDocument ; $doc -> loadXML (<<<XML <books> <book name="'quoted' name">Book title</book> </books> XML); $xpath = new DOMXPath ( $doc ); $query = "//book[@name=" . DOMXPath :: quote ( "' ... ( $entries as $entry ) { echo "Found " , $entry -> textContent , "\n" ; } ?> 上の例の出力は以下となります。 //book[@name="'quoted' name"] Found Book title 引用符が混在している文字列もサポートします: <?php echo DOMXPath :: quote ( "'different' \"quote\ ... " styles" ); ?> 上の例の出力は以下となります。 concat("'different' ",'"quote" styles') 参考 DOMXPath::evaluate() - 与えられた XPath 式を評価し、可能であれば結果を返す DOMXPath::query() - 与えられた X ...
https://man.mtool.work/php/8.3/domxpath.quote.html
mysqli::quote_string — SQL 文で使用する文字列をエスケープし、クォートで囲む | P... 11227
mysqli::quote_string mysqli_quote_string (PHP 8 >= 8.6.0) mysqli::quote_string -- mysqli_quote_string — SQL 文で使用する文字列をエスケープし、クォートで囲む 説明 オブジェクト指向型 public function mysqli::quote_string ( string $string ): st ... ring 手続き型 function mysqli_quote_string ( mysqli $mysql , string $string ): string SQL 文中で使用できる正しい形式の SQL 文字列リテラルを作成します。 指定し ... ティ: デフォルトの文字セット 文字セットは、サーバーレベルか API 関数 mysqli_set_charset() のどちらかで設定しないと、 mysqli_quote_string() に反映されません。詳細は 文字セットの概念 を参照ください。 注意 : クォートが適しているのは、文字列リテラルだけです ... 、 ' だけを 2 つ重ねてエンコードします。 戻り値 シングルクォートで囲んだ、エスケープ済みの文字列を返します。 例 例1 mysqli::quote_string() の例 オブジェクト指向型 <?php mysqli_report ( MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT ); $mysqli = new mysqli ...
https://man.mtool.work/php/8.3/mysqli.quote-string.html
odbc_connection_string_quote — ODBC の接続文字列をクオートする | PHP 8.3 11068
odbc_connection_string_quote (PHP 8 >= 8.2.0) odbc_connection_string_quote — ODBC の接続文字列をクオートする 説明 function odbc_connection_string_quote ( string $str ): string 接続文字列の値を、ODBC のルールに従ってクオートします。 つまり、 ... 文字列にクオートが必要かどうかもチェックしないことに注意してください。 それらの用途には、それぞれ odbc_connection_string_is_quoted() と、 odbc_connection_string_should_quote() をコールしてください。 パラメータ str クオートされていない文字列 戻り値 波括 ... 弧で囲まれた、クオートされた文字列。 適切にエスケープも行われます。 例 例1 odbc_connection_string_quote() の例 この例は文字列をクオートし、接続文字列に追加します。 文字列がクオートされ、文字列中の右括弧もエスケープされることに ... 注意してください。 <?php $value = odbc_connection_string_quote ( "foo}bar" ); $connection_string = "DSN=PHP;UserValue= $value " ; echo $connection_string ; ?> 上の例の出力は、 たとえば以 ...
https://man.mtool.work/php/8.3/function.odbc-connection-string-quote.html
PDO::quote — クエリ用の文字列をクオートする | PHP 8.3 10678
PDO::quote (PHP 5 >= 5.1.0, PHP 7, PHP 8, PECL pdo >= 0.2.1) PDO::quote — クエリ用の文字列をクオートする 説明 public function PDO::quote ( string $string , int $type = PDO::PARAM_STR ): string | false PDO::quote() は入力文字列のまわりに引用 ... クオート形式が使用されます。 この関数を SQL の構築に使用する場合、 SQL ステートメントにユーザーの入力値を埋め込むための PDO::quote() を使用する代わりに、 バインドパラメータを用いて SQL を準備するための PDO::prepare() を使用することが 強く 推奨されます。 ... タベース接続自身に設定させる (ドライバに依存します) なりして、 文字セットを明示しておく必要があります。この文字セットが PDO::quote() に影響を及ぼします。詳細は 各ドライバのドキュメント を参照ください。 パラメータ string クオートされる文字列を指定します。 ... 字列をクオートする <?php $conn = new PDO ( 'sqlite:/home/lynn/music.sql3' ); /* 単純な文字列 */ $string = 'Nice' ; print "Unquoted string: $string \n" ; print "Quoted string: " . $conn -> quote ( $string ) . "\n" ; ?> 上の例の出力は以下となります。 Unq ...
https://man.mtool.work/php/8.3/pdo.quote.html
db2_escape_string — 特定の文字をエスケープする | PHP 8.3 10533
db2_escape_string (PECL ibm_db2 >= 1.6.0) db2_escape_string — 特定の文字をエスケープする 説明 function db2_escape_string ( string $string_literal ): string 引数で指定した文字列中の特殊文字の前にバックスラッシュを追加します。 パラメータ stri ... ; if ( $conn ) { $str [ 0 ] = "All characters: \x00 , \n , \r , \ , ' , \" , \x1a ." ; $str [ 1 ] = "Backslash (\). Single quote ('). Double quote (\")" ; $str [ 2 ] = "The NULL character \0 must be quoted as well" ; $str [ 3 ] = "Interesting characte ... rs: \x1a , \x00 ." ; $str [ 4 ] = "Nothing to quote" ; $str [ 5 ] = 200676 ; $str [ 6 ] = "" ; foreach( $str as $string ) { echo "db2_escape_string: " . db2_escape_string ( $ ... となります。 db2_escape_string: All characters: \0 , \n , \r , \\ , \' , \" , \Z . db2_escape_string: Backslash (\\). Single quote (\'). Double quote (\") db2_escape_string: The NULL character \0 must be quoted as well db2_escape_string: Interesting cha ...
https://man.mtool.work/php/8.3/function.db2-escape-string.html
odbc_connection_string_should_quote — ODBC の接続文字列を、クオートすべきかを調... 9435
odbc_connection_string_should_quote (PHP 8 >= 8.2.0) odbc_connection_string_should_quote — ODBC の接続文字列を、クオートすべきかを調べる 説明 function odbc_connection_string_should_quote ( string $str ): bool ODBC の接続文字列に、クオートが ... true を返す文字が含まれているということです。 既にクオートされているかどうかをチェックするには、 odbc_connection_string_is_quoted() をコールしてください。 パラメータ str チェックする文字列 戻り値 文字列をクオートすべき場合は true を返します。 そうでな ... い場合は、 false を返します。 参考 odbc_connection_string_quote() - ODBC の接続文字列をクオートする odbc_connection_string_is_quoted() - ODBC の接続文字列の値が、クオートされているかを調 ...
https://man.mtool.work/php/8.3/function.odbc-connection-string-should-quote.html
新しく追加された関数 | PHP 8.3 8279
新しく追加された関数 cURL curl_upkeep() IMAP imap_is_open() (PHP 8.2.1 以降) MySQLi mysqli_execute_query() ODBC odbc_connection_string_is_quoted() odbc_connection_string_should_quote() odbc_connection_string_quote() OpenSSL openssl_cipher_k ...
https://man.mtool.work/php/8.3/migration82.new-functions.html
tidy::getConfig — 現在の Tidy の設定を取得する | PHP 8.3 7889
tidy::getConfig tidy_get_config (PHP 5, PHP 7, PHP 8, PECL tidy >= 0.7.0) tidy::getConfig -- tidy_get_config — 現在の Tidy の設定を取得する 説明 オブジェクト指向型 public function tidy::getConfig (): array 手続き型 function tidy_get_config ... [drop-font-tags] => [drop-empty-paras] => 1 [fix-bad-comments] => 1 [break-before-br] => [split] => [numeric-entities] => [quote-marks] => [quote-nbsp] => 1 [quote-ampersand] => 1 [wrap-attributes] => [wrap-script-literals] => [wrap-sections] => 1 [wr ...
https://man.mtool.work/php/8.3/tidy.getconfig.html
odbc_connection_string_is_quoted — ODBC の接続文字列の値が、クオートされている... 7817
odbc_connection_string_is_quoted (PHP 8 >= 8.2.0) odbc_connection_string_is_quoted — ODBC の接続文字列の値が、クオートされているかを調べる 説明 function odbc_connection_string_is_quoted ( string $str ): bool ODBC の接続文字列の値が、適切にク ... 戻り値 適切にクオートされている場合は true を返します。 そうでない場合は、 false を返します。 参考 odbc_connection_string_quote() - ODBC の接続文字列をクオートする odbc_connection_string_should_quote() - ODBC の接続文字列を、クオートすべきかを調べる ...
https://man.mtool.work/php/8.3/function.odbc-connection-string-is-quoted.html
PREV 1 2 3 4 5 6 7 NEXT