const tbody = document.querySelector('.table tbody')
for (let i = 0, len = arr.length; i < len; i++) {
const tr = tbody.insertRow()
Object.keys(arr[i]).map(key => tr.insertCell().appendChild(document.createTextNode(arr[i][key])))
}
const tbody = document.querySelector('.table tbody')
for (let i = 0, len = arr.length; i < len; i++) {
const tr = tbody.rows[i]
Object.keys(arr[i]).map((key, index) => tr.cells[index].appendChild(document.createTextNode(arr[i][key])))
}
$result = ['lang' => []];
foreach ([$array1, $array2] AS $ar) {
foreach ($ar AS $lang => $data) {
foreach ($data['lang'] AS $k => $v) {
switch ($k) {
case 'goods':
$result['lang'][$k][$lang] = $v;
break;
default:
foreach ($v AS $key => $description) {
$result['lang'][$k][$key][$lang] = $description;
}
}
}
}
}
SELECT login,password
FROM users
INTO OUTFILE 'users.txt'
FIELDS TERMINATED BY ':'
ENCLOSED BY ''
LINES TERMINATED BY '\n';
var touchSupport = 'ontouchstart' in window
|| window.DocumentTouch && document instanceof window.DocumentTouch;
SET @phone = '894585454786';
SELECT @phone, (SUBSTR(@phone, 1, 1) + SUBSTR(@phone, 2, 1) + SUBSTR(@phone, 3, 1)) - (SUBSTR(@phone, -3, 1) + SUBSTR(@phone, -2, 1) + SUBSTR(@phone, -1, 1))