Skip to main content

All Questions

Tagged with
3 votes
1 answer
393 views

Call object constructor (__construct) from a php extension

I'm just experimenting with a PHP extension and I would like to know what is the suggested/preferred way to call an object constructor within the extension. I've read that, by calling the ...
Carlo Pastorino's user avatar
-1 votes
2 answers
135 views

what happens when I create a object instance of my class

I have two class like this: class one { public $var1 = 'anythig'; } class two { public $var2 = 'anythig'; } I want to know when I create a object instance of these classes what happens? My ...
user avatar
9 votes
2 answers
4k views

Is there ever a need to use ampersand in front of an object?

Since objects are passed by reference by default now, is there maybe some special case when &$obj would make sense?
LDusan's user avatar
  • 205