type-converter:[已弃用] 将类型转换为另一种类型

时间:2021-06-19 17:24:05
【文件属性】:
文件名称:type-converter:[已弃用] 将类型转换为另一种类型
文件大小:10KB
文件格式:ZIP
更新时间:2021-06-19 17:24:05
PHP 类型转换器 v2.0.0 处理某些资源格式/内容类型的检测和转换为其他格式的类。 当前支持的格式:XML、JSON、Array、Object、Serialized 要求 PHP 5.3+ - v2.x PHP 5.2+ - v1.x SimpleXML - 文档 这门课非常简单。 如果要将某些内容转换为另一种格式,请使用“to”方法。 $object = TypeConverter::toObject($resource); $array = TypeConverter::toArray($resource); $json = TypeConverter::toJson($resource); $xml = TypeConverter::toXml($resource); $ser = TypeConverter::toSerialize($resource); 如果要检测它是
【文件预览】:
type-converter-master
----composer.json(555B)
----docs()
--------changelog.md(344B)
--------usage.md(17KB)
----readme.md(2KB)
----tests()
--------index.php(3KB)
--------test.xml(1KB)
----TypeConverter.php(10KB)
----license.md(1KB)

网友评论