note 39180 deleted from language.operators.increment by betz

From: Date: Tue, 20 Jan 2004 20:45:15 +0000
Subject: note 39180 deleted from language.operators.increment by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-63901@lists.php.net to get a copy of this message
Note Submitter: jlladono@pie.xtec.es ---- If you want to read a number from a text file (with fgets(), for example), you can get a string with appended newline character. An example with a string formed by '7' and newline char: $x="7\n"; $x++; // it doesn't work to get an 8. $x keeps same value $x = $x +1; // it works to get an 8. That was under linux (text files with \n and not \n\r at line ends). If anyone wants to try in windows...

« previous php.notes (#63901) next »