|
PHP5中文手册
ltrim(PHP 4, PHP 5) ltrim — Strip whitespace (or other characters) from the beginning of a string 说明
string ltrim
( string $str
[, string $charlist
] )
Strip whitespace (or other characters) from the beginning of a string. 参数
返回值This function returns a string with whitespace stripped from the beginning of str . Without the second parameter, ltrim() will strip these characters:
更新日志
范例
Example#1 Usage example of ltrim()
<?php 上例将输出:
|