note 62479 added to language.operators.increment

From: Date: Wed, 01 Mar 2006 15:55:46 +0000
Subject: note 62479 added to language.operators.increment
Groups: php.notes 
Request: Send a blank email to php-notes+get-104638@lists.php.net to get a copy of this message
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); } ---- Server IP: 195.221.21.36 Probable Submitter: 195.68.46.222 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/language.operators.increment.php Edit -- http://master.php.net/note/edit/62479 Del: integrated -- http://master.php.net/note/delete/62479/integrated Del: useless -- http://master.php.net/note/delete/62479/useless Del: bad code -- http://master.php.net/note/delete/62479/bad+code Del: spam -- http://master.php.net/note/delete/62479/spam Del: non-english -- http://master.php.net/note/delete/62479/non-english Del: in docs -- http://master.php.net/note/delete/62479/in+docs Del: other reasons-- http://master.php.net/note/delete/62479 Reject -- http://master.php.net/note/reject/62479 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104638) next »