note 39321 added to function.chunk-split
| From: | mv at NOSPAM dot php dot net | Date: | Sat, 24 Jan 2004 12:39:25 +0000 |
| Subject: | note 39321 added to function.chunk-split | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64108@lists.php.net to get a copy of this message | ||
the best way to solve the problem with the last string added by chunk_split() is:
$string = '1234';
substr(chunk_split($string, 2, ':'), 0, -1);
// will return 12:34
----
Manual Page -- http://www.php.net/manual/en/function.chunk-split.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39321
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39321&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39321&report=yes
Search -- http://master.php.net/manage/user-notes.php