• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What about this syntax?

#1
[eluser]jbawarren[/eluser]
So I was looking at the Codeigniter code and ran across an oddly placed ampersand.

In common.php

The function:
function &load;_class($class, $instantiate = TRUE)

The instance:
$error =& load_class('Exceptions');

What exactly does the ampersand do here?

Sorry if it's a beginner question, I'm just curious...and new Smile

Thanks.

#2
[eluser]m4rw3r[/eluser]
See Returning references
and Refereces in the PHP manual.

#3
[eluser]jbawarren[/eluser]
Thanks m4rw3r,

That will do Smile


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.