Object-Oriented PHP: Autoloading, Serializing, and Querying Objects

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

29-Jun-11 00:00
This is a forum topic for discussing the article "Object-Oriented PHP: Autoloading, Serializing, and Querying Objects":

http://www.elated.com/articles/object-oriented-php-autoloading-serializing-and-querying-objects/

In this object-oriented PHP tutorial, you learn how to automatically load classes, convert objects to strings, and inspect objects, properties and methods.
01-Jul-11 16:11
Bring on the other OOP tutorials. These are the best I have found on the net, and I've been searching high and low for quality tutorials that aren't rehashed and cloned versions.

I think getting into the in's and out's of the various concepts and applications of OOP PHP would prove invaluable, and book worthy (I'd buy it!).
02-Jul-11 11:32
In my opinion, when you will develop the functionality of the system using plug-ins (as is done in WordPress), it is better to use the spl_autoload_register(), because it can happen that some plug-in is already using __autoloader()... Well, then you can have a problem
04-Jul-11 23:19
@tbolton: Thank you so much I'll definitely look at writing more PHP OOP tutorials, since there seems to be a lot of demand for them.

I do cover OOP in my PHP book (shameless plug!) - I go through pretty much the same topics that I've covered in the 4 tutorials so far, but in a bit more depth:

http://www.amazon.com/gp/product/0470413964/

There are also code examples throughout the book that show OOP in action.

@th3mon: Good point, yes. spl_autoload_register() lets you register multiple autoload functions in a stack, which is handy if you're working with libraries or frameworks that have their own autoloaders:

http://php.net/manual/en/function.spl-autoload-register.php

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/
11-Jul-11 09:09
Matt Doyle - How does your book compare to this: http://amzn.to/r1eyVl - I dnt wanna buy one and miss out from the other.

I willm if you say yours is better buy yours. However I am a new starter and asking for your honest opinion of what you think would benefit me more.

very nice article btw, Bookmarked!

12-Jul-11 02:48
@mpetherbridge: I haven't read that book so I've no idea! It looks like it covers object-oriented programming in PHP - that's about all I can say.

My book covers OOP but it also covers many other aspects of PHP. If you're a PHP beginner then I'd certainly recommend checking it out. You can see some of the book content on Amazon:

http://www.amazon.com/gp/product/0470413964/#reader_0470413964

Cheers,
Matt

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/
28-Jan-12 19:01
Thank you very much, for now, it is the best PHP OOP tutorials i can find on the net. It will be nice if you continue this tutorial, especially about pattern and Late static bindings. And once again, thank you very much.
30-Jan-12 00:58
@m_goku: Thanks for the feedback! I might write a tutorial on those topics if there's enough demand.

Matt

--
Matt Doyle, Elated
3rd Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/
25-Jul-12 21:09
another grateful reader here
really rare, useful tutorials
wish you best of luck and hope you will surprise us with other tutorials in the future
thanks

--
lets do it

 
New posts
Old posts

Follow Elated