|
Posted by Erwin Moller on 11/14/05 13:17
Smitro wrote:
> Hi all,
>
> I have spent the last couple of days getting my code up to scratch with
> PHP 5 and MySQL 5. (I still don't quite understand why we had to change
> to mysqli from mysql)
>
> Just a question, Object Orientated PHP? Is it the way that PHP is
> heading, or is it just an addon for those that want to use it.
>
> I started using php because to me it made so much sence. When I look at
> the example of Object Orientated PHP I get totally lost. Do I have to
> start looking at moving all my code this way, or is this just an addon
> for those that are use to coding in this way? What are my chances of
> running procedual code in PHP 6?
Hi,
Stay cool. :-)
You CAN use OO if you want, but nobody is forcing you to do so.
Many hackers like PHP the way it is, and do not use OO.
Because OO offer some very serious advantages, you can expect to see more
OO-PHP-code, but of course it is up to you if you want to use it.
And PHP is not heading in a direction that forces you to use OO, it is just
offering you the option.
Mind however that many usefull add-ons, like PEAR, are coded in an OO
fashion. If you find you have some time left, use it to study OO.
PHP's implementation of OO is easy to learn (compared to Java eg), and you
might find yourself in the future in the situation you see that
very-handy-impossible-to-resist-package, but it uses OO.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|