note 9159 modified in function.substr by irc-html

From: Date: Tue, 22 Jan 2002 23:54:59 +0000
Subject: note 9159 modified in function.substr by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25715@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"; ?> --was-- 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 - . &lt;? $cep = '01010000'; $cepini = substr ("$cep", 0, 5); $cepend = substr ("$cep", 5); echo"$cepini - $cepend"; ?> http://www.php.net/manual/en/function.substr.php

« previous php.notes (#25715) next »