summaryrefslogtreecommitdiffhomepage
path: root/php.html.markdown
diff options
context:
space:
mode:
authorDhwani Shah <dshah202@gmail.com>2015-10-02 14:12:15 -0500
committerDhwani Shah <dshah202@gmail.com>2015-10-02 14:12:15 -0500
commitfb43ef2942f29ece285be3e8944c91bde6306095 (patch)
tree3cd0204717afd86b3bd6ad970de234a3b822ddba /php.html.markdown
parentf23d470961b952b3e6c3aa27ec2c48edd657baf0 (diff)
Added example of when string concatenation can also be helpful with combination of strings with html tags as this is important to understand when templating say output code from a database transaction.
Diffstat (limited to 'php.html.markdown')
-rw-r--r--php.html.markdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/php.html.markdown b/php.html.markdown
index 3fcce264..86fb14e5 100644
--- a/php.html.markdown
+++ b/php.html.markdown
@@ -102,6 +102,8 @@ END;
// String concatenation is done with .
echo 'This string ' . 'is concatenated';
+// Strings concatenation can also be combined with html elements
+echo 'This string is' . '<strong>' . 'bold with strong tags ' . '</strong>.'
/********************************