Strange behaviour of ++ operator in PHP 5.3

Rockroxgrl

New Member
Watch following code:\[code\]$a = 'Test';echo ++$a;\[/code\]This will output:\[code\]Tesu\[/code\]Question is, why ?I know "u" is after "t", but why it doesn't print "1" ???EDIT: Becouse Zend books teach following:\[quote\] Also, the variable being incremented or decremented will be converted to the appropriate numeric data type
 
Back
Top