mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-05 14:27:51 +02:00
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.
This commit is contained in:
@@ -102,6 +102,8 @@ END;
|
|||||||
|
|
||||||
// String concatenation is done with .
|
// String concatenation is done with .
|
||||||
echo 'This string ' . 'is concatenated';
|
echo 'This string ' . 'is concatenated';
|
||||||
|
// Strings concatenation can also be combined with html elements
|
||||||
|
echo 'This string is' . '<strong>' . 'bold with strong tags ' . '</strong>.'
|
||||||
|
|
||||||
|
|
||||||
/********************************
|
/********************************
|
||||||
|
Reference in New Issue
Block a user