面向对象的PHP [英] Object Oriented PHP

查看:78
本文介绍了面向对象的PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是PHP的新手,只有一天新的。但我在其他许多语言上都是经验丰富的程序员,如C,VB 6,C#,VB.NET,Win32

平台,并且在MFC中有一些小经验, C ++,Python。


到目前为止,我读到的关于PHP的所有教程都包含了程序示例。

我还没有找到关于对象的教程面向PHP。可能

有人指向我吗?

解决方案

不是教程,而是一个例子:
http://www.wp.dds.nl/tinyunit.htm


Water Cooler v2写道:

我是PHP的新手,只有一天新的。但我是其他许多语言的经验丰富的程序员,如C,VB 6,C#,VB.NET,Win32
平台,并且在MFC,C ++,Python方面有一些小经验。

到目前为止我读到的关于PHP的所有教程都包含了程序示例。
我还没有找到面向对象PHP的教程。可能有人指向我吗?



我在PHP的某个地方看到了C ++范围解析运算符

代码。我不记得我在哪里看到它了。


那是什么(::)?它与C ++中的用法相同吗?


Water Cooler v2写道:


所有教程我到目前为止,关于PHP的内容包含了程序示例。
我还没有涉及面向对象PHP的教程。有人能指点我吗?




从手册开始:

http://www.php.net/OOP
http://www.php.net/OOP5


到OO语法。


干杯,

NC


I am new to PHP, just one day new. But I am otherwise a seasoned
programmer on many other languages like C, VB 6, C#, VB.NET, Win32
platform and have some tiny bit experience in MFC, C++, Python.

All the tutorials I read so far about PHP contain procedural examples.
I haven''t yet come accross a tutorial on the object oriented PHP. Could
someone point me to one?

解决方案

Not a tutorial, but an example:
http://www.w-p.dds.nl/tinyunit.htm

Water Cooler v2 wrote:

I am new to PHP, just one day new. But I am otherwise a seasoned
programmer on many other languages like C, VB 6, C#, VB.NET, Win32
platform and have some tiny bit experience in MFC, C++, Python.

All the tutorials I read so far about PHP contain procedural examples.
I haven''t yet come accross a tutorial on the object oriented PHP. Could
someone point me to one?



I''ve seen the C++ scope resolution operator used in some place in PHP
code. I do not recall where I saw it.

What''s that (::) for? Does it have the same use as in C++?


Water Cooler v2 wrote:


All the tutorials I read so far about PHP contain procedural examples.
I haven''t yet come accross a tutorial on the object oriented PHP. Could
someone point me to one?



Start with the Manual:

http://www.php.net/OOP
http://www.php.net/OOP5

Note that there are differences between PHP 4 and PHP 5 when it comes
to OO syntax.

Cheers,
NC


这篇关于面向对象的PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆