y is this code is incorrect?
class a
static $date=date("d-m-y",time());
function a()...
and this one is correct
class a
static $date='01-01-2005';
function a()...
i want to assign in to a static var 10 rows from a txt file
i need to that because i dont want that every time im creating a new object the class wil open again the file to read.
i know that other languages are allow that.
thanks