PHP容器化demo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
521 B

<?php
/**
* ObjectArray.test.php
* Test Base controller.
* @version 150629:1
* @author karminski <code.karminski@outlook.com>
*
*/
require(dirname(__FILE__).'/../protected/lib/base/ObjectArray.php');
class DefaultRequest extends ObjectArray{
}
$input = array(
'id' => 12,
'type' => 'a',
'callback' => 'json_callback_21453534534',
'src' => 'pc_452345',
);
$DefaultRequest = new DefaultRequest($input);
$DefaultRequest['tar'] = 'zxvf';
var_dump(json_encode($DefaultRequest));