mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-17 21:49:22 +01: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:
parent
f23d470961
commit
fb43ef2942
@ -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>.'
|
||||
|
||||
|
||||
/********************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user