Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

argument by reference?

 
   Database Forums (Home) -> PHP RSS
Next:  A little help with access forms.  
Author Message
Gernot Frisch

External


Since: Jan 27, 2004
Posts: 26



(Msg. 1) Posted: Mon Sep 20, 2004 4:26 pm
Post subject: argument by reference?
Archived from groups: alt>php (more info?)

Can I pass any argument by reference?

function modify(reference_of($val))
{
$val="house";
}

$val = "my ";
echo($val);
modify($val);
echo($val);

Output:
my house

--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com

 >> Stay informed about: argument by reference? 
Back to top
Login to vote
Janwillem Borleffs1

External


Since: Sep 17, 2003
Posts: 170



(Msg. 2) Posted: Mon Sep 20, 2004 4:26 pm
Post subject: Re: argument by reference? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Gernot Frisch wrote:
 > Can I pass any argument by reference?
 >

<a rel="nofollow" style='text-decoration: none;' href="http://www.php.net/manual/en/language.references.pass.php" target="_blank">http://www.php.net/manual/en/language.references.pass.php</a>


JW

 >> Stay informed about: argument by reference? 
Back to top
Login to vote
Gernot Frisch

External


Since: Jan 27, 2004
Posts: 26



(Msg. 3) Posted: Mon Sep 20, 2004 4:26 pm
Post subject: Re: argument by reference? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Janwillem Borleffs" schrieb im Newsbeitrag

 > Gernot Frisch wrote:
  >> Can I pass any argument by reference?
  >>
 >
<font color=purple> > <a rel="nofollow" style='text-decoration: none;' href="http://www.php.net/manual/en/language.references.pass.php</font" target="_blank">http://www.php.net/manual/en/language.references.pass.php</font</a>>
 >
Thx a lot.
 >> Stay informed about: argument by reference? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Warning: mysql_fetch_assoc(): supplied argument is not a v.. - I have a MYSQL/PHP install at home, and the same MYSQL table structure on a hosting service (ipower) I get the following crash from the hosting site: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in..

PHP Reference Guide - Does anyone know of a quick reference guide similar to the type of guide provided by the www.barcharts.com Web site? They have them for a lot of things (HTML, C++, Java, CSS, Visual BASIC, and Linux included). They don't have (or intend to get) one for...

online reference to mysql_errno() codes? - I want to do something like this: while(false == ($result = mysql_query($query)) ) { switch(mysql_errno()) { case $fixableError[0]: case $fixableError[1]: /* fix the errors */ break; default: die..

how to invoke ReflectionMethod and pass variable by refere.. - Hi This code fails: class K2 { public function increment(&$obj) { $obj += 1; } } $a = new K2(); $c = 10; echo "before: $c <br/>\n"; $rc = new ReflectionClass('K2'); $rm = $rc->getMethod('increment'); $rm->invoke($a ,$c...

Why I only get empty pages is I search for: php zend engin.. - Hi, I get a lot of web-pages but they are !! empty !! -> why -> are they not jet written ? -> how should I write an extension in C/C++ without an API reference mfg Andreas Otto
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]