執行 ❯
獲取您
自己的 PHP
伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <?php $x = " Hello World! "; echo trim($x); ?> <p>The whitespaces are invisible in plain HTML,<br> but check out the difference in two input fields:</p> <?php echo "<input value='" . $x . "'>"; echo "<br>"; echo "<input value='" . trim($x) . "'>"; ?> </body> </html>
Hello World!
空白在純 HTML 中是不可見的,
但是請檢視兩個輸入欄位中的區別