Jump to content

မေႃႇၵျူး:string/php trim/doc

လုၵ်ႉတီႈ ဝိၵ်ႇသျိၼ်ႇၼရီႇ မႃး

This is the documentation page for မေႃႇၵျူး: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.