$(selector).click(function(e){
let elementClick = $(this).attr("href");
let scrollRow = $(this).data('type');
let destination = $(elementClick).offset()[scrollRow];
$("html:not(:animated),body:not(:animated)").animate({
scrollTop: destination
}, 800);
return false;
});
$order = [
id => 12345,
name => 'Арт.',
key => 'product',
value => 'Иван Иванов'
];
$orders = [
[0] => [
id => 12345,
name => 'Арт.',
key => 'product',
value => 'Иван Иванов'
],
];
$val = [];
foreach($orders as $order)
$val[] = $order['value'];
json_encode( $string)
(array)$result