например второй url?
и как добавить еще один массив в массив "files"
$json = array(
"files" => array(
array(
"url" => "img1.png",
"type" => "image",
"size" => 23424
),
array(
"url" => "img2.png",
"type" => "image",
"size" => 1267
)
)
);
$json = array(
"files" => array(
array(
"url" => "img1.png",
"type" => "image",
"size" => 23424
),
array(
"url" => "img2.png",
"type" => "image",
"size" => 1267
)
)
);
$json['files'][1]['url'] = 'new-url';
$json['files'][] = array(
"url" => "img3.png",
"type" => "image",
"size" => 12675
)