note 106615 deleted from language.operators.increment by cmb

From: Date: Fri, 14 Aug 2020 07:54:45 +0000
Subject: note 106615 deleted from language.operators.increment by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214963@lists.php.net to get a copy of this message
Note Submitter: johnnythan at nospam dot gmx dot com ---- If you have a trailing zero and use the increment, the trailing zero will not remain. Was at least unexpected for me at first, although it's logical if you think about it. <?php $start = '01'; $start++; print $start; //Outputs '2' not '02' ?>

« previous php.notes (#214963) next »