note 80783 deleted from migration5.incompatible by nlopess
| From: | nlopess@php.net | Date: | Thu, 31 Jan 2008 17:05:58 +0000 |
| Subject: | note 80783 deleted from migration5.incompatible by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-135666@lists.php.net to get a copy of this message | ||
Note Submitter: Tachy
----
$string="12345";
$rightstring1=substr($string,-3);
$rightstring2=substr($string,-8);
echo "Result1: ".$rightstring1."<BR>";
echo "Result2: ".$rightstring2."<BR>";
PHP4:
Result1: 345
Result2: 12345
PHP5:
Result1: 345
Result2: <empty>
!!