params use references, pointers in php or script function
Posted: Mon Jul 25, 2005 12:44 pm
in C++, we can pass references or pointers as function's parameters.
i.e.
void MyCpp(int&i0,int&i1,int&i2);//references
or
void MyCpp(int*pi0,int*pi1,int*pi2);//pointers
when the function returns, all parameters can be modified by the function's body.
-------------------------
my question is:
can a php or java-script function use parameters similar to references or pointers in C++?
if yes, how?
thanks
i.e.
void MyCpp(int&i0,int&i1,int&i2);//references
or
void MyCpp(int*pi0,int*pi1,int*pi2);//pointers
when the function returns, all parameters can be modified by the function's body.
-------------------------
my question is:
can a php or java-script function use parameters similar to references or pointers in C++?
if yes, how?
thanks