note 9159 added to substr

From: Date: Thu, 19 Oct 2000 12:02:36 +0000
Subject: note 9159 added to substr
Groups: php.notes 
Request: Send a blank email to php-notes+get-6698@lists.php.net to get a copy of this message
Here (after 30 minutes of search PHP Manuals) is the code that i use to separate a Brazilian CEP codes into 2 strings splited by a - . <? $cep = '01010000'; $cepini = substr ("$cep", 0, 5); $cepend = substr ("$cep", 5); echo"$cepini - $cepend"; ?> http://www.php.net/manual/function.substr.php

« previous php.notes (#6698) next »