PHP Basics: Variables


A variable is a placeholder for a value. You can assign a value to a variable. In PHP you are not required to specify the data type when creating a variable.

$hello =”Hello World”;

This assigns the variable ‘hello’ with the value of ‘Hello World’.


Thank you for reading. PHPinformation.org, your home for quality PHP Information.

Hi, Stranger! Leave Your Comment...

You must be logged in to post a comment.

Powered by WP Robot