Do we still need "=&" ? |
[eluser]ang89[/eluser]
I read a comment on this PHP manual page, which states: Quote:Note that in PHP5 you generally don't need the reference operator -- at all -- when dealing with class objects, because PHP5 implements objects using Instances (which are more like C pointers than PHP's references system).Does it means that when I call CI's get_instance(), I can use regular assignment operator "=" instead of the usual "=&" ? Forgive me for being to lazy to do an experiment by myself. Regards, Andree
[eluser]mddd[/eluser]
Yes, I believe if you are using php5 that $CI = get_instance(); has the same result as $CI =& get_instance(); |
Welcome Guest, Not a member yet? Register Sign In |