ProAnswers.org

What is a typeless variable in php?

What is a typeless variable in php?

A variable which is not bound to a specific data type. A variable can contain a string, then assigned an integer, then an array, then an object, etc.



$var = 'hello';

$var = 100;

$var = array( 1, 2, 'hello', 100 );

$var = new Person();

?>