I have a class that contains some static public variables containing numeric values and an associative static array that matches the numeric values with strings.
However, php doesn't let me do that, it says : Parse error : syntax error, unexpected "$TYPE_DATE" (T_VARIABLE), expecting identifier (T_STRING)
Here is the simplified code:
class myclass
{
public static $TYPE_DATE = 0b00010010;
public static $TYPE_INT = 0b01010001;
private static $types = array( "DATE"=>myclass::$TYPE_DATE, "INTEGER"=>myclass::$TYPE_INT);
}
Thank's in advance