Monday, June 1, 2009

PHP - Variables

In PHP you define a variable with the following form:
  • $variable_name = Value;

If you forget that dollar sign at the beginning, it will not work. This is a common mistake for new PHP programmers!

Here is a example:

<?php
$hello = "Hello vn4000!";
$a_number = 400;
?>