Literal¶
A literal is a hard coded value in the source.
Literal may be of type int, float, boolean, null, array.
Objects and resources cannot be hardcoded, though their creation call may be.
Literals are given names by creating a constant, global or class.
<?php
// Literal 1 to $a
$a = 1;
// The object is created during execution.
$b = new X();
?>
Related : Destructor, Hard Coded, Constants, Static Constant, Inlining