php里的html内容切取
摘要:HTMl内容的切取,找了很多都不行或有乱码,然后我组合了一个。 1 /** 2 * Truncates text. 3 * 4 * Cuts a string to the length of $length and replaces the last characters 5 * with the ending if the text is longer than length. 6 * 7 * @param string $text String to truncate. 8 * @param integer $le...
阅读全文
posted @
2012-10-12 15:33
myx
阅读(1452)
推荐(0) 编辑