Results of 1 - 1 of about 1 for mycgi (0.000 sec.)
- urlencode — 文字列を URL エンコードする | PHP 8.3 9414
- urlencode (PHP 4, PHP 5, PHP 7, PHP 8) urlencode — 文字列を URL エンコードする 説明 function urlencode ( string $string ): string この関数は、URL の問い合わせ部分に使用する文字列のエンコードや 次のページへ変数を渡す際に便利です。 パラメータ
... コードします。 例 例1 urlencode() の例 <?php $userinput = 'Data123!@-_ +' ; echo "UserInput: $userinput \n" ; echo '<a href="mycgi?foo=' , urlencode ( $userinput ), '">' ; ?> 上の例の出力は以下となります。 UserInput: Data123!@-_ + <a href="mycgi?foo=Dat ... foo \n" ; echo "bar: $bar \n" ; $query_string = 'foo=' . urlencode ( $foo ) . '&bar=' . urlencode ( $bar ); echo '<a href="mycgi?' . htmlentities ( $query_string ) . '">' ; ?> 上の例の出力は以下となります。 foo: Data123!@-_ + bar: Not the same content ... as Data123!@-_ + <a href="mycgi?foo=Data123%21%40-_+%2B&bar=Not+the+same+content+as+Data123%21%40-_+%2B"> 注意 注意 : HTML エンティティにマッチする変数 ...
-
https://man.mtool.work/php/8.3/function.urlencode.html
PREV
1
NEXT