在哪里可以找到对PHP标准类的引用? [英] Where can I find references to PHP Standard Classes?

查看:68
本文介绍了在哪里可以找到对PHP标准类的引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道PHP是一种面向对象的服务器端脚本语言,而且我还知道一些PHP函数,例如strtolower(),strtoupper(),...这些都是非面向对象的过程函数,我想知道是否PHP中的字符串可以视为String对象(如.NET,javascript ...),这样我就可以执行以下操作:myString.toLower(),myString.toUpper()...

我对面向对象的编程语言非常熟悉,因此在PHP中使用诸如strtolower(),strtoupper()之类的函数感到不容易,我希望它也像其他许多面向对象的编程一样具有标准的类语言.但是我找不到关于这些东西的任何参考资料.

您能否告诉我PHP中是否存在此类类?如果是这样,我在哪里可以找到它们的引用?

非常感谢您!

I know PHP is an object-oriented server side scripting language, and I have also known some PHP functions such as strtolower(), strtoupper(), ... which are all procedural functions not object-oriented, I wonder if strings in PHP can be treated as String objects (as in .NET, javascript...) so that I can do something like this myString.toLower(), myString.toUpper()...

I am very familiar with object-oriented programming language, so I don''t feel easy with functions like strtolower(), strtoupper()... in PHP, I hope it also has standard classes like in many other object-orientd programming languages. But I don''t find any references on such stuffs.

Could you please tell me if such classes in PHP do exist? And if so, Where can I find references on them?

Thank you very much!

推荐答案

要以一种正式而腐的方式回答,我想说的是,没有像标准" PHP库这样的东西,因为PHP本身不是官方标准化的对象.

但是,在PHP单词中有明确定义的版本控制过程和发行信息,这是必不可少的,因为它定义了Web托管提供程序可以为Web作者提供的所有保证.因此,PHP确实定义了一组完整描述的API,称为标准PHP库"(SPL).我可以在这里找到所有内容:

http://www.php.net/spl [ http://en.wikipedia.org/wiki/PHP [ http://www.php.net/docs.php [ ^ ].

您会发现PEAR(PHP扩展和应用程序存储库)和PECL(PHP扩展社区库)托管在PHP网站的不同子域中:
http://en.wikipedia.org/wiki/PEAR [ http://pear.php.net/ [ ^ ],
http://pecl.php.net/ [ ^ ].

—SA
To answer in a formal and pedantic way, I would say, there is no such thing as a "standard" PHP library, because PHP itself is not a subject to official standardization.

However, inside PHP word there are the well-defined versioning procedures and release information, which is essential because it defines all the guarantees the Web hosting providers can provide to the Web authors. So, PHP does define a fully described set of APIs called "Standard PHP Library" (SPL). I can find everything here:

http://www.php.net/spl[^].

See also:
http://en.wikipedia.org/wiki/PHP[^].

Everything else is provided in the form of PHP extensions and packages. They are more or less stable, can be provided by all Web hosting providers or not, can be provided in the form of class libraries or not. For more information, refer to the PHP documentation: http://www.php.net/docs.php[^].

You will find that PEAR (PHP Extension and Application Repository) and PECL (PHP Extension Community Library) are hosted on different subdomains of the PHP site:
http://en.wikipedia.org/wiki/PEAR[^],
http://pear.php.net/[^],
http://pecl.php.net/[^].

—SA


这篇关于在哪里可以找到对PHP标准类的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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