you first need open and closed tags
<?php
?>
now you want to print out the text hello world in a variable.
$text = 'Hello World';
A variable is a storage mechanism to store a value. In php you dont need to declare the type of variable that you need to in other languages such as java.
The print function that is found in php is echo
so if we now want to print hello world
<?php
$text = 'hello world;
echo $text;
?>
In this tutorial you learnt the basic syntax for the openning and closing tags in php as well as what a varaible is and hwo to print text using a variable
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Step 1: First you need to download and install python. You can get a python installation from http://www.python.org/download/ Step 2: now...
-
In this file i purposely made mistakes to see what would happen. I hope this helps
-
to settup the database for Django step 1: go to the settings file ENGINE': 'django.db.backends.sqlite3', # Add 'postgresq...
No comments:
Post a Comment