14,953
edits
| Line 233: | Line 233: | ||
=== Using PHP from the command line === | === Using PHP from the command line === | ||
[[Execute php script in a bat file]] | [[Execute php script in a bat file]] | ||
=== 移除非預期的空白(全形空白) === | |||
需要額外移除 [http://www.fileformat.info/info/unicode/char/3000/index.htm 'IDEOGRAPHIC SPACE' (U+3000)] 全形空白 | |||
<pre> | |||
$string = str_replace(json_decode('"\u3000"'), "", $string); | |||
$string = trim($string); | |||
</pre> | |||
More on: [[Data_cleaning#Remove other string look like whitespace | Remove other string look like whitespace]] | |||
== 使用者操作/使用者輸入的內容 == | == 使用者操作/使用者輸入的內容 == | ||