note 109046 modified in function.substr by danbrown
| From: | danbrown@php.net | Date: | Fri, 15 Jun 2012 15:56:31 +0000 |
| Subject: | note 109046 modified in function.substr by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-188630@lists.php.net to get a copy of this message | ||
Using a 0 as the last parameter for substr(). As per
examples <?php $var = substr($var, 4);
?> works no problem. However
<?php $var = substr($var, 4, 0);
?> will get you nothing. Just a quick heads up
--was--
Using a 0 as the last parameter for substr().
As per examples
$var = substr($var, 4);
works no problem. However
$var = substr($var, 4, 0);
will get you nothing. Just a quick heads up
http://php.net/manual/en/function.substr.php