Archive for September, 2009

dear php, about array declaration

Tuesday, September 29th, 2009

So, the following is legal:

$foo = array(
  "bar" => 2*2
);
var_dump($foo);

But this is not:

class Foo {
  public static $foo = array(
    "bar" => 2*2
  );
}
var_dump(Foo::$foo);

I’m sure there is a reasonable explanation for this behavior, but I’m not sure I really want to hear about it.

About

My name is Sebastien Tanguy. This is my weblog. I am currently a software developer, but every now and then I also talk about music, books or photography.

 

September 2009
M T W T F S S
« Jul   Oct »
 123456
78910111213
14151617181920
21222324252627
282930  

Archives