How to take the value of the object that died a long time ago, in a new facility which will run through many classes and methods?

There is a class which is created, and the properties of the class given the data that will be needed in another object, and which will start using multiple objects and methods. Like going on.
// the first object
$new = new NewClass; 
$new->id = 123;

// here is the whole bunch then the object dies, then again a whole bunch
// and in this place I need this id;
public function () {
 if ($id == 0) {
 echo 'lala';

I think storing it in $_SECTION, kraynyak.
April 7th 20 at 10:42
1 answer
April 7th 20 at 10:44

Find more questions by tags PHP