sspoke Posted October 16, 2007 Share Posted October 16, 2007 $val = & new val(); why do people use that? when you could use $val = new val(); I just want to know what = & means I dont think anyone made a topic for this and its hard to search for symbols you get a billion topics nothing reliable. My guess is that it makes it static? Quote Link to comment https://forums.phpfreaks.com/topic/73437-solved-whats-the-and-equals-operator-do-in-a-new-instance-creation/ Share on other sites More sharing options...
wildteen88 Posted October 16, 2007 Share Posted October 16, 2007 Have a read of the References documentation here. In PHP5 $val =& new val(); is the same as $val = new val(); Quote Link to comment https://forums.phpfreaks.com/topic/73437-solved-whats-the-and-equals-operator-do-in-a-new-instance-creation/#findComment-370887 Share on other sites More sharing options...
sspoke Posted October 17, 2007 Author Share Posted October 17, 2007 thanks Quote Link to comment https://forums.phpfreaks.com/topic/73437-solved-whats-the-and-equals-operator-do-in-a-new-instance-creation/#findComment-371381 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.