Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB