Basic PHP Syntax
Basic PHP Syntax
$var_name = value;
A variable name must start with a letter or an underscore "_" A variable name can only contain alpha-numeric characters and underscores (a-Z, 0-9, and _ ) A variable name should not contain spaces. If a variable name is more than one word, it should be separated with underscore ($my_string), or with capitalization ($myString)
Hello World
Now, lets try to use some different functions and operators to manipulate our string.
For a complete reference of all string functions, go to the W3C complete PHP String Reference. http://w3schools.com/php/php_ref_string.asp The reference contains a brief description and examples of use for each function!