php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #17387 String conversion examples poor
Submitted: 2002-05-23 09:51 UTC Modified: 2002-05-24 14:50 UTC
From: jasonh at trurocollege dot ac dot uk Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.2.0 OS:
Private report: No CVE-ID: None
 [2002-05-23 09:51 UTC] jasonh at trurocollege dot ac dot uk
http://uk.php.net/manual/en/language.types.type-juggling.php

Contains these examples:

  $foo = 5 + "10 Little Piggies"; // $foo is integer (15)
  $foo = 5 + "10 Small Pigs";     // $foo is integer (15)

What's the point in two practically identical examples next to each other?  How about making the second one:

  $foo = 5 + "10.2 Small Pigs";  // $foo is float (15.2)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-24 14:50 UTC] derick@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 04:01:28 2024 UTC