PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 22nd, 2004, 04:01 AM
Mr_Fawlty Mr_Fawlty is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Abbotsham, North Devon, South West UK
Posts: 3 Mr_Fawlty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 sec
Reputation Power: 0
Question PHP Class inheritance

Hi all,

I am quite new to PHP, so bear with me.

I am learning PHP's OOP stuff. Has PHP 5 introduced multi-level class inheritance? Have you ever been able to have multi-level inheritance in PHP?

I come from a Java background so OOP is central to the way I program, but I want to move to PHP.

Thanks for any replies.

Reply With Quote
  #2  
Old July 22nd, 2004, 07:28 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 16
Send a message via ICQ to dhouston
Check out the docs at zend.com. That'll be the offical word on inheritance in PHP5. Seems like there's multi-level inheritance but there's some weird restriction that I can't remember.
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old July 22nd, 2004, 09:06 AM
Mr_Fawlty Mr_Fawlty is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Abbotsham, North Devon, South West UK
Posts: 3 Mr_Fawlty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 sec
Reputation Power: 0
Thanks for your reply.

I've checked the zend site, but the only mention of inheritance was on their phorum where someone named Bjørn Danielsen has apparently written a workaround that allows multiple inheritance... to a point, but his site isn't working (aaaargh!). However, his post was written before 5 was released, so I am none the wiser I'm afraid.

[ sob ] I just want to use multiple inheritance... please!! (Pathetic isn't it?!)

Reply With Quote
  #4  
Old July 23rd, 2004, 12:31 PM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 785 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 16
Quote:
Originally Posted by Mr_Fawlty
Hi all,

I come from a Java background so OOP is central to the way I program, but I want to move to PHP.

It has been my opinion that you can go years or a lifetime writting applications without a REAL need to use multiple-inheritance.

Is this a need or a want for you?
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #5  
Old July 24th, 2004, 04:23 AM
Mr_Fawlty Mr_Fawlty is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Abbotsham, North Devon, South West UK
Posts: 3 Mr_Fawlty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 sec
Reputation Power: 0
Inheritance...

Quote:
Originally Posted by laidbak
It has been my opinion that you can go years or a lifetime writting applications without a REAL need to use multiple-inheritance.

Is this a need or a want for you?


More of a want I suppose. I don't need multiple inheritance that often, but there are times when I have had to use it. I can certainly live without it though. What I can do in PHP is multiple parent classes, which has worked for me, so I guess I can continue to use that.

Reply With Quote
  #6  
Old December 1st, 2009, 01:28 AM
usamainadv usamainadv is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2009
Location: US
Posts: 3 usamainadv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 2 sec
Reputation Power: 0
Hi there!

Hi everybody,My name is Allan, I am 41 yrs old, living in Fort Worth, TX. I'd love to make good close friends here.Thanks,Allan.

Reply With Quote
  #7  
Old May 30th, 2010, 10:59 PM
onlineclick onlineclick is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2010
Location: US
Posts: 13 onlineclick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 44 sec
Reputation Power: 0
Here I am*

Hello!I'm new to this forum.. Hope to have nice time around here...Look forward to 'meeting' you all.

Reply With Quote
  #8  
Old June 8th, 2010, 12:33 AM
infocusweb infocusweb is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2010
Posts: 5 infocusweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 33 sec
Reputation Power: 0
Hello Friend

I am Jaydeep Dave. I had Completed Computer Engineering, And Recently I am working as web development so I have need some help for php web development.

Reply With Quote
  #9  
Old June 9th, 2010, 11:51 PM
infocusweb infocusweb is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2010
Posts: 5 infocusweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 33 sec
Reputation Power: 0
hi friend

i am jaydeep dave. i am working as web developer i want to know how creare class in php.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > PHP Class inheritance


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap