arianhojat Posted October 27, 2006 Share Posted October 27, 2006 Only place I seen & referenced in code before is when you want to pass a variable into a function that you want to modify...What does it mean in this different context, before the instantiation of an object?:$var = &new ObjectName();an example of where i see this is here although to me it seems like it is not needed just to create the object: http://www.devshed.com/c/a/PHP/The-Basics-of-Serializing-Objects-in-PHP/1/$dataSaver=&new DataSaver('This string will be saved to file');thanks in advance. Link to comment https://forums.phpfreaks.com/topic/25311-instantiating-object-with-new-objectname/ Share on other sites More sharing options...
arianhojat Posted October 27, 2006 Author Share Posted October 27, 2006 any takers? Link to comment https://forums.phpfreaks.com/topic/25311-instantiating-object-with-new-objectname/#findComment-115533 Share on other sites More sharing options...
arianhojat Posted October 29, 2006 Author Share Posted October 29, 2006 sorry to do this again but... bump. Link to comment https://forums.phpfreaks.com/topic/25311-instantiating-object-with-new-objectname/#findComment-116265 Share on other sites More sharing options...
toplay Posted October 29, 2006 Share Posted October 29, 2006 There is a difference (in PHP 4) and it's explained pretty well at this manual page:http://us2.php.net/manual/en/language.oop.newref.php Link to comment https://forums.phpfreaks.com/topic/25311-instantiating-object-with-new-objectname/#findComment-116293 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.