Hello. Please help me understand, I have an array in php :
<?php $credit=array( array('Номер 1','10','03'), array('Номер N','N','N'), array('Номер 10','6','12') ); ?> var credit_m_m = <?php echo json_encode($credit_m_m);?>; I need to convert the php array to js , as shown in the example below:
var options = { manualInput: false, order:[{ model: 1, quanity: 10, date: 03 }, { model: N, quanity: N, date: N }, { model: 10, quanity: 6, date: 12 }] } How to convert an array from php , js array "order"?
print_r(json_decode(result_json, true));- see which array structure you need. I think nothing complicated is needed - splash58JSON_HEX_TAGotherwiseJSON_HEX_TAGwill suffer from XSS to fight - tutankhamun