note 39321 modified in function.chunk-split by vrana

From: Date: Tue, 17 Aug 2004 14:54:58 +0000
Subject: note 39321 modified in function.chunk-split by vrana
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79691@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: <?php $string = '1234'; substr(chunk_split($string, 2, ':'), 0, -1); // will return 12:34 ?> --was-- 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 http://php.net/manual/en/function.chunk-split.php

« previous php.notes (#79691) next »