PHP Concatenation example

<?php include('flavor.php'); $flavor = get_flavor(); echo "Jane's favorite flavor of ice cream is " . $flavor . ".";
A simple concatenation example with a space at the end of a string before the variable.

2 Responses

We can also make a more robust and cleanly.
@Matuzalém S. Teles Thanks Matuzalém!

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.