Silly Question

This is a discussion on "Silly Question" within the PHP Forum section. This forum, and the thread "Silly Question are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 21st, 2006, 02:33
Reputable Member
Join Date: Dec 2005
Location: U.S.A.
Posts: 147
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to ScottR Send a message via Skype™ to ScottR
Silly Question

This seems like a silly question. In all the PHP scripts I've written I can't ever remember using -> I'm assuming this is an assignment operator? Does any one have a quick answer to this? I sure would appreciate it. Thank you in advance.

Scott
Reply With Quote

  #2 (permalink)  
Old Oct 21st, 2006, 05:04
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Silly Question

The -> operator runs the method named on the right of the operator on the object named on the left. Thus

$old = $ourfirstdog->getage();

"run the getage method on the object stored in $ourfirstdog and return the result into the variable $old"
Reply With Quote
  #3 (permalink)  
Old Oct 21st, 2006, 22:23
Reputable Member
Join Date: Dec 2005
Location: U.S.A.
Posts: 147
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to ScottR Send a message via Skype™ to ScottR
Re: Silly Question

Ok,thank you, thats kinda what I was thinking. Just wanted to clarify.
Reply With Quote
  #4 (permalink)  
Old Nov 4th, 2006, 21:14
New Member
Join Date: Nov 2006
Location: uk
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Silly Question

read up on OOP regarding PHP, its used for objects.



THANKS ANDY!!!
-
teesside website design - website design in teesside -
Reply With Quote
Reply

Tags
php operator

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Silly Golf jimboready Free Web Site Critique 2 Feb 29th, 2008 13:57
Help!! A silly Question nutbolt Flash & Multimedia Forum 4 Feb 7th, 2007 16:30
[HELP] XSL silly question windbizz Other Programming Languages 1 Oct 3rd, 2006 06:54
Probably a VERY silly question but... dharma Web Page Design 6 Sep 4th, 2006 10:33
very silly and easy question saltedm8 Web Page Design 2 Aug 22nd, 2006 22:35


All times are GMT. The time now is 21:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43