มอดูล:string/php trim/documentation
หน้าตา
นี่คือหน้าเอกสารการใช้งานสำหรับ มอดูล:string/php trim
Lua equivalent of PHP's trim($string)
, which trims "\0"
, "\t"
, "\n"
, "\v"
, "\r"
and " "
. This is useful when dealing with template parameters, since the native parser trims them like this.
Note: this module has been written to be as fast as possible, and is considerably faster than any equivalent string patterns.