PHP code example of clearswitch / dataconversion
1. Go to this page and download the library: Download clearswitch/dataconversion library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
clearswitch / dataconversion example snippets
use ClearSwitch\DataConversion\DataConversion;
/**
* $data需要的转换的数据(暂时只支持json,xml,array)
*$type 需要转换的格式(暂时只支持json,xml,array)
*/
$obj=new DataConversion();
$obj->dataConversion($data,$type);