diff options
author | Malcolm Fell <malcolm@vendhq.com> | 2013-06-28 08:48:31 +1200 |
---|---|---|
committer | Malcolm Fell <malcolm@vendhq.com> | 2013-06-28 08:48:31 +1200 |
commit | 0ab2ec2d737dab34f5c962b53e49f96b74b829da (patch) | |
tree | 4297b6d44f2213b5998c9c9bce45eff28a0fa529 /php.html.markdown | |
parent | dd8abee4b432b57c017dfef368c975c5bef6e1e1 (diff) |
Fix spelling error concatinated -> concatenated
Diffstat (limited to 'php.html.markdown')
-rw-r--r-- | php.html.markdown | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/php.html.markdown b/php.html.markdown index 18324736..4dafe6ad 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -43,8 +43,8 @@ $integer = 0123; // octal number (equivalent to 83 decimal) $integer = 0x1A; // hexadecimal number (equivalent to 26 decimal) // Floats (aka doubles) -$float = 1.234; -$float = 1.2e3; +$float = 1.234; +$float = 1.2e3; $float = 7E-10; // Arithmetic @@ -74,7 +74,7 @@ $sgl_quotes END; // Nowdoc syntax is available in PHP 5.3.0 // Manipulation -$concatinated = $sgl_quotes + $dbl_quotes; +$concatenated = $sgl_quotes + $dbl_quotes; ``` ### Compound @@ -237,7 +237,7 @@ while ($i < 5) { if ($i == 3) { break; // Exit out of the while loop and continue. } - + echo $i++; } @@ -247,7 +247,7 @@ while ($i < 5) { if ($i == 3) { continue; // Skip this iteration of the loop } - + echo $i++; } ``` @@ -338,11 +338,11 @@ Classes are insantiated with the ```new``` keyword. Functions are referred to as class MyClass { function myFunction() { } - + function function youCannotOverrideMe() { } - + public static function myStaticMethod() { } @@ -362,12 +362,12 @@ PHP offers some [magic methods](http://www.php.net/manual/en/language.oop5.magic ```php class MyClass { private $property; - + public function __get($key) { return $this->$key; } - + public function __set($key, $value) { $this->$key = $value; @@ -471,4 +471,4 @@ Visit the [official PHP documentation](http://www.php.net/manual/) for reference If you're interested in up-to-date best practices, visit [PHP The Right Way](http://www.phptherightway.com/). -If you're coming from a language with good package management, check out [Composer](http://getcomposer.org/).
\ No newline at end of file +If you're coming from a language with good package management, check out [Composer](http://getcomposer.org/). |