HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
PHP Objects
Post new topic   Reply to topic    HTML Help Forum -> Perl
View previous topic :: View next topic  
Author Message
virka



Joined: 08 Feb 2007
Posts: 1

PostPosted: Thu Feb 08, 2007 2:34 am     PHP Objects Reply with quote

How PHP Objects are passed from one object to other
Pattons3rd



Joined: 28 Dec 2006
Posts: 1212
Location: Colorado

PostPosted: Sun Feb 11, 2007 2:51 pm     Reply with quote

Did you mean to put this in Perl?
Alston



Joined: 27 Nov 2009
Posts: 3

PostPosted: Wed Dec 02, 2009 10:58 pm     Reply with quote

Assigned by value/reference example:

$var1 = "test";
$var2 = $var1;
$var2 = "new test";
$var3 = &$var2;
$var3 = "final test";

print ("var1: $var1, var2: $var2, var3: $var3);

And

Passed by value/reference exampe:

$var1 = "foo";
$var2 = "bar";

changeThem($var1, $var2);

print "var1: $var1, var2: $var2";

function changeThem($var1, &$var2){
$var1 = "FOO";
$var2 = "BAR";
}
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> Perl All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial