[SOLVED] php5.0.3: weird bug?
Posted: Sun Mar 06, 2005 8:15 pm
Code: Select all
<?php
error_reporting(E_ALL);
$rows = array();
$rowsї] = array('user' => 'timvw', 'credits' => 6);
$newcredits = $rowsї0]ї'credits']++;
echo "newcredits: $newcredits<br>";
$newcredits = $rowsї0]ї'credits'] + 1;
echo "newcredits: $newcredits<br>";
?>newcredits: 6
newcredits: 8
i don't think this behaviour is expected... but i'm always ready to learn something new