[Q] How Can I Make PHP Function Which Uses Call-By-Reference Variable
| From: | Sungjin Chun | Date: | Wed, 10 May 2000 11:29:52 +0000 |
| Subject: | [Q] How Can I Make PHP Function Which Uses Call-By-Reference Variable | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-14728@lists.php.net to get a copy of this message | ||
For Example in C,
char bufName[128];
readName( &bufName );
printf( "%s\n", bufName );
Like Above Example, I want to make php function
PHP_FUNCTION( phpReadName )
{
/* ... */
}
In case of ordinary call by value variable, I can use
pval* pVal;
getParameter( ...., &pVal );
RETURN_STRINGL( str, strlen( str ), 1 );
But I do not know the case of reference variable.
Sorry for my poor english and Thanks in advance.
--
******************************************************************************
Title: Programmer, LinuxOne | LANGUAGES:
Name: Chun, Sungjin | C : Base for Ordinary People.
E-Mail: | FORTRAN : Lang. for Handicapped.
ninja@linuxone.co.kr | C++ : For Dummies.
ninja@aerohel.snu.ac.kr | ObjC : For Genius.
ninja@pvmcube2.snu.ac.kr | ST-80 : REAL LANG.
Comment: | Pascal : So so
Logic Rules. | ASM : &*$#*%*@&^#@*
******************************************************************************