str:缺少的 PHP 字符串库

时间:2021-07-11 20:49:13
【文件属性】:
文件名称:str:缺少的 PHP 字符串库
文件大小:9KB
文件格式:ZIP
更新时间:2021-07-11 20:49:13
PHP PHP字符串对象类 缺少的 PHP 字符串库 这将使使用 PHP 字符串更容易; 为字符串操作提供一个简单的链式 API 不要混淆针干草堆的东西 允许您在几秒钟内扩展和添加自己的方法 $ text = 'Something to translate' ; $ text = strtr ( $ text , $ translation ); $ text = htmlspecialchars ( $ text ); $ text = nl2br ( $ text ); echo $ text ; Str 对象允许您这样做; echo ( new Str ( 'Something to translate' )) -> tr ( $ translation ) -> chars () -> nl2br ();
【文件预览】:
str-master
----composer.json(408B)
----phpunit.xml(249B)
----tests()
--------StrTest.php(18KB)
----src()
--------Kemo()
----.gitignore(51B)
----README.md(638B)

网友评论