$price = number_format ($meta['trip_prev_price'], 0, '.', ' ');
Постом не получается - вылазит ошибка csrf токена
Как закодировать символ & в GET запросе?
<?php
$products = [
[
'title' => 'Товар 1',
'theme' => 'Кастрюли',
],
[
'title' => 'Товар 2',
'theme' => 'Кастрюли',
],
[
'title' => 'Товар 3',
'theme' => 'Сковородки',
],
[
'title' => 'Товар 4',
'theme' => 'Сковородки',
],
[
'title' => 'Товар 5',
'theme' => 'Кружки',
],
[
'title' => 'Товар 6',
'theme' => 'Кружки',
],
];
$categories = [];
foreach ($products as $product) {
$categories[$product['theme']][] = $product['title'];
}
foreach ($categories as $category => $products) {
echo "<b>$category</b>";
echo "<ul>";
foreach ($products as $product) {
echo "<li>$product</li>";
}
echo "</ul>";
}
$spreadsheet->getActiveSheet()->getColumnDimension('B')->setAutoSize(true);
echo $PATH
)cd /usr/bin
touch ctl
#!/bin/bash
sudo systemctl $1 start
chmod +x ctl