<?php $a = $b = $c = new stdClass; $c->id = 1; var_dump($a, $b, $c); // estou chutando que todos vão ter o valor "id"
Standard input is empty
object(stdClass)#1 (1) { ["id"]=> int(1) } object(stdClass)#1 (1) { ["id"]=> int(1) } object(stdClass)#1 (1) { ["id"]=> int(1) }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!