What's the meaning of & here ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

What's the meaning of & here ?

Post by Mds »

Hello all.
I saw somewhere this function:

function char_cube3d(&$bitmaps, $letter)
{ ... }

What's the meaning of & ?

Thank you.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: What's the meaning of & here ?

Post by jaoudestudios »

Is that the ampersand symbol? &

It means reference or pointer. It is the same as using $$.
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: What's the meaning of & here ?

Post by Mds »

Is that the ampersand symbol?
Yeah

Thank you jaoudestudios.
You're very expert in PHP 8O
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: What's the meaning of & here ?

Post by jaoudestudios »

No problem, and thank you. But that is not true, there is always so much to learn, especially with php6 coming out shortly! I am currently bashing my head at the moment with actionscript 3 - it makes php look like a baby language!
User avatar
Mds
Forum Contributor
Posts: 110
Joined: Tue Apr 22, 2008 8:56 pm
Contact:

Re: What's the meaning of & here ?

Post by Mds »

actionscript 3 - it makes php look like a baby language!
I think SilverLight defeats Flash , thus I want to learn SilverLight .
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: What's the meaning of & here ?

Post by jaoudestudios »

No way! Why?
Post Reply