มอดูล:string/php trim
หน้าตา
- The following documentation is located at มอดูล:string/php trim/documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
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.