php-to-string:将任何php值转换为字符串

时间:2021-05-09 08:55:09
【文件属性】:
文件名称:php-to-string:将任何php值转换为字符串
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-09 08:55:09
php string cast PHP PHP到字符串 将PHP值转换为字符串的简单库。 地位: 简单的库,可让您将任何php值转换为字符串 安装 composer require coduo/php-to-string 用法 支持的类型: 细绳 整数 浮动/双 目的 可召回的 大批 资源 use Coduo \ ToString \ StringConverter ; $ double = new StringConverter ( 1.12312 ); echo $ double ; // "1.12312" $ datetime = new StringConverter ( new \ DateTime ()); echo $ datetime ; // "\DateTime" $ array = new StringConverter ( array ( 'foo' , 'bar' , 'baz' )); ech
【文件预览】:
php-to-string-3.x
----composer.json(1KB)
----tests()
--------Coduo()
----LICENSE(1KB)
----src()
--------Coduo()
----CHANGELOG.md(5KB)
----phpunit.xml.dist(719B)
----README.md(1KB)

网友评论