Source Code:
(back to article)
<?php // Example 1 echo "Hello World!" . PHP_EOL; // Output: Hello World! // Example 2 $myName = "John"; $myAge = 30; echo "My name is " . $myName . " and I am " . $myAge . " years old."; // Output: My name is John and I am 30 years old.
Result:
Report an issue