How do you pass a variable by value?

Ads

 
 

Share on Google+Share on Google+

brijesh
How do you pass a variable by value?
1 Answer(s)      6 years and 11 months ago
Posted in : PHP

How do you pass a variable by value?

Ads
View Answers

November 15, 2010 at 11:02 AM


Hi all,

Pass a variable by value in PHP just like C++, put an ampersand in front of it, like $username = &$name.

Thanks


Ads









Related Tutorials/Questions & Answers:
Advertisements