3

Example:

$this->sql =& new GuestBook_SQL;

What does it do?

3 Answers 3

8

This operator is assigning reference. Here's the explenation from PHP manual

2

It assigns by reference, instead of by value.

1

And it's old. You don't need that syntax anymore in PHP5. It assigns new objects by reference anyway.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.