note 76085 added to function.chunk-split
| From: | lehongviet at gmail dot com | Date: | Fri, 29 Jun 2007 10:23:51 +0000 |
| Subject: | note 76085 added to function.chunk-split | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128082@lists.php.net to get a copy of this message | ||
This function works well to cut long para for preview without cutting word. Good for Unicode such as
ṭ
function split_hjms_chars($xstr, $xlenint, $xlaststr)
{
$xlenint = strpos($xstr," ",$xlenint);
return substr($xstr,0,$xlenint).$xlaststr;
}
----
Server IP: 69.147.83.197
Probable Submitter: 203.162.33.222
----
Manual Page -- http://www.php.net/manual/en/function.chunk-split.php
Edit -- https://master.php.net/note/edit/76085
Del: integrated -- https://master.php.net/note/delete/76085/integrated
Del: useless -- https://master.php.net/note/delete/76085/useless
Del: bad code -- https://master.php.net/note/delete/76085/bad+code
Del: spam -- https://master.php.net/note/delete/76085/spam
Del: non-english -- https://master.php.net/note/delete/76085/non-english
Del: in docs -- https://master.php.net/note/delete/76085/in+docs
Del: other reasons-- https://master.php.net/note/delete/76085
Reject -- https://master.php.net/note/reject/76085
Search -- https://master.php.net/manage/user-notes.php