ID:          17388
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:      Open
+Status:      Closed
 Bug Type:    Documentation problem
 PHP Version: 4.2.0
 New Comment:

This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2002-05-23 09:56:45] [EMAIL PROTECTED]

http://uk.php.net/manual/en/language.types.string.php#language.types.string.conversion

Contains these examples:

  $foo = "10.0 pigs " + 1;        // $foo is integer (11)
  $foo = "10.0 pigs " + 1.0;      // $foo is float (11)

But both of these yield float 11.  Which suggests that the following
line of documentation (which is immediately above this set of examples)
is also wrong:

 "When the first expression is a string, the type of the variable will
depend on the second expression."



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=17388&edit=1

Reply via email to