0 9

BIT301 ยท 0 ยท 5 marks

How can you define variable in PHP. Illustrate with example.

How can you define variable in PHP. Illustrate with example. [5]

Web Technology IIChapter 1: PHP Fundamentals and SyntaxVariable definition and declaration

A variable in PHP is a named storage location that holds a value. PHP variables are loosely typed, meaning you do not need to declare the data type explicitly -- the type is determined automatically based on the assigned value. --- 1. A variable must start with a dollar sign (