473,386 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

php oop for dummies

I know C, C++ and Java. I have been using "procedural" PHP. I get the list
of classes for PHP, but I need a "PHP OOP for Dummies" on how to implement
these. Any pointers to a tutotial?

Shelly
Mar 20 '06 #1
2 4084
Shelly wrote:
I know C, C++ and Java. I have been using "procedural" PHP. I get the
list of classes for PHP, but I need a "PHP OOP for Dummies" on how to
implement
these. Any pointers to a tutotial?

Shelly


Hi Shelly,

For starters:
http://nl2.php.net/manual/en/language.oop.php

It covers all basic usage.
If you are familiar with OOP, which you are since you did C++ and Java, PHP
classes and OOP should be easy.
Remember that PHP is used mostly in webpages, and all objects should be
created within a 'pagesession', and die when request is finished (unless
you take certain precautions).
If you need them to live longer, you'll have to serialize them, store them
somewhere (eg database or $_SESSION), and revive them where needed.
Things like J2EE's ServletContext doesn't exists in PHP, as all runs in a
per-request fashion.

Hope that helps a bit.
I think you'll have an easy time coming C++ and Java. :-)

Good luck and regards,
Erwin Moller
Mar 20 '06 #2
Thanks. How silly of me not to think of RTFM. I'll read that.

Mar 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

60
by: K. G. Suarez | last post by:
Hello everyone. I am new to programming and my uncle gave me a copy of "C For Dummies 2nd Edition". I am up to chapter 9 right now. He probably saw me struggling with "The C Programming...
10
by: Roy Lawson | last post by:
Can anyone explain the difference between RowStateFilter and RowFilter properties of the DataView objects in simple terms? I am going through a Transcender practice exam and just when I think I...
3
by: maigork | last post by:
C All-In-One Desk Reference For Dummies.pdf if it exist can anyone tell me where i can dovnload it? Thank you verry much!!!!
2
by: Carlo Stonebanks | last post by:
I have the infamous GoF Design Patterns boo - it's been sittin gon my shelf for years. I have a huge reading list and find this book a rather dry read and am always putting it off. I have...
0
by: Spam Catcher | last post by:
Is there a "For Dummies" guide to the Component UI Application Blocks (CAB)? CAB seems to do what I need for a new application I'm building... but the documentation provided with the Quickstart...
0
by: paul james | last post by:
Hello There Im in the asp.net 2.0 for dummies by Bill Hatfield. Its harder than i thought but I wont quit till i get it . But on page161 chapter 11 listing 11-6 I type it in but can not get it to...
5
by: salmobytes | last post by:
I'm working on a mini-micro CMS that amounts to a semi-automatic page-generation system that allows authorized users to manipulate an administrative menu. Once installed, the system is...
0
by: Daryl | last post by:
New to programming C++? How to learn it good and fast? See this : http://freebooks2007.blogspot.com Have C++ books for dummies, and even more like expert, can see it too.. Check it out! ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.