<?php
class Point
{
var $x;
var $y;
function Point()
{
$this->$x = 2;
$this->$y = 4;
}
}
$p = new Point();
echo("x = " . $p->$x);
?> Simple non? mais voila le probleme: cela m'affiche: x = 4
si quelqu'un peut m'aider, je vous remercie d'avance