diff options
author | Adam Bard <github@adambard.com> | 2013-07-08 15:57:09 -0700 |
---|---|---|
committer | Adam Bard <github@adambard.com> | 2013-07-08 15:57:09 -0700 |
commit | 7555578053fdddd53ca20eec9d5a0a03b5ee6bd8 (patch) | |
tree | edd6d667a95014bae44a0d63e806d6fab6b676bd /php.html.markdown | |
parent | 0fb7f0077e4be02b6bdf1c301c91adbd1cf08801 (diff) | |
parent | c88262d9d1f657a12831eb6734ec75bc1ee190b9 (diff) |
Merge pull request #113 from muratyuksel/master
Small math bug
Diffstat (limited to 'php.html.markdown')
-rw-r--r-- | php.html.markdown | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/php.html.markdown b/php.html.markdown index 22c410d1..9627035c 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -48,9 +48,9 @@ $boolean = true; // or TRUE or True $boolean = false; // or FALSE or False // Integers -$int1 = 19; // => 19 -$int2 = -19; // => -19 -$int3 = 019; // => 15 (a leading 0 denotes an octal number) +$int1 = 12; // => 12 +$int2 = -12; // => -12 +$int3 = 012; // => 10 (a leading 0 denotes an octal number) $int4 = 0x0F; // => 15 (a leading 0x denotes a hex literal) // Floats (aka doubles) @@ -381,9 +381,6 @@ echo $function_name(1, 2); // => 3 * Includes */ -/* -``` -```php <?php // PHP within included files must also begin with a PHP open tag. @@ -597,9 +594,6 @@ $cls->myTraitMethod(); // Prints "I have MyTrait" // This section is separate, because a namespace declaration // must be the first statement in a file. Let's pretend that is not the case -/* -``` -```php <?php // By default, classes exist in the global namespace, and can |