提供PHP的字串移除前後空白範例
The trim() removes any whitespace from the beginning or the end:
$x = " Hello World! ";
echo trim($x);
Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: 提供PHP的字串移除前後空白範例 ### Response: The trim() removes any whitespace from the beginning or the end:
$x = " Hello World! ";
echo trim($x); 