diff options
author | Akshay Kalose <AkshayProductions@gmail.com> | 2015-10-16 20:11:37 -0400 |
---|---|---|
committer | Akshay Kalose <AkshayProductions@gmail.com> | 2015-10-16 20:11:37 -0400 |
commit | 3b554a7e13d9aea591b2e5745687850d6d50da02 (patch) | |
tree | d6d7f09d7aa5d070dda2bfe7a06c88429bc69797 /php.html.markdown | |
parent | 9bb82465e6ad4b602f4fb0a8ff3877dddc4ca3e5 (diff) |
Update PHP with Additional Information
Diffstat (limited to 'php.html.markdown')
-rw-r--r-- | php.html.markdown | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/php.html.markdown b/php.html.markdown index 39ec5aef..9a6ddbbb 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -12,7 +12,7 @@ This document describes PHP 5+. <?php // PHP code must be enclosed with <?php tags // If your php file only contains PHP code, it is best practice -// to omit the php closing tag. +// to omit the php closing tag which will Pprevent accidental output. // Two forward slashes start a one-line comment. @@ -103,6 +103,8 @@ END; // String concatenation is done with . echo 'This string ' . 'is concatenated'; +// Strings can be passed in as parameters to echo +echo 'Multiple', 'Parameters', 'Valid'; /******************************** * Constants @@ -141,6 +143,8 @@ echo $array[0]; // => "One" // Add an element to the end of an array $array[] = 'Four'; +// or +array_push($array, 'Five'); // Remove element from array unset($array[3]); |