note 62479 deleted from language.operators.increment by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 15:22:02 +0000 |
| Subject: | note 62479 deleted from language.operators.increment by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189851@lists.php.net to get a copy of this message | ||
Note Submitter: julien-bernie-laurent at polenord.com
----
to thus trying to increment a string and are blocked by the exponential typecast explained in the
message below, here is a small function :
function increment($var) {
$var2 = '_'.$var;
return substr(++$var2,1);
}