syntax error, unexpected '.', expecting ')'

Posted by Jonathan on Stack Overflow See other posts from Stack Overflow or by Jonathan
Published on 2010-03-13T23:12:50Z Indexed on 2010/03/13 23:15 UTC
Read the original article Hit count: 201

Filed under:
|

Hi,

I've got a problem when I'm calling a static var from another class. I get this pretty syntax error where php is unexpected the '.'

Here is where I'm calling it :

private $aLien = array(
"menu1"     => array("Accueil","statique/".Variable_init::$langue."/accueil.html",0,0), //This line
"menu2"     => array("Infos Pratiques","statique/".Variable_init::$langue."/info.html",0,0),
"menu3"     => array("Faire une réservation","statique/".Variable_init::$langue."/reserver.html",0,0),
"menu4"     => array("Pour Nous Joindre","statique/".Variable_init::$langue."/nousJoindre.html",0,0),
"menu5"     => array("Plan du site","statique/".Variable_init::$langue."/plansite.html",0,0)
);

And here is my static var declaration from another class:

class Variable_init implements iVariable_init{

public static $langue; public static $id_choix; public static $id_contenu;

© Stack Overflow or respective owner

Related posts about php

Related posts about syntax