echo "Welcome to my eStore! <br> I offer some of the best candles on the web.";
// Here I welcome to my visitors
?>
(Note: We purpose to create a folder named "my examples" in C:\apachefriends\xampp\htdocs\. In this folder you can save all following examples that you are doing in this lesson. In this way you should see anytime the results of all your examples in the browser to the address: http://localhost/myexamples/.)
Then save it under the name: example3.php. Go to browser to the address: http://localhost/myexamples/. Click on examples3.php (or go directly to: http://localhost/myexamples/example3.php). In fig.2.2.is what you will see in the browser.
|
|
Fig. 2.1.Example3 embedded in html code saw in HTML-Kit |
Fig. 2.2. Screenshot showing example3 in the browser |
- print() - output a string. print() is not actually a real function (it is a language construct) so you are not required to use parentheses with its argument list.