问题描述
我知道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标准类的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!