Chrome для мобильных устройств показывает странный пиксель, как сетка на элементах, которые имеют цвет фона # 505050

Время проходит, и PHP развивается. PHP7 теперь поддерживает Null-коалесцирующий оператор :

// Fetches the value of $_GET['user'] and returns 'nobody'
// if it does not exist.
$username = $_GET['user'] ?? 'nobody';
// This is equivalent to:
$username = isset($_GET['user']) ? $_GET['user'] : 'nobody';

// Coalescing can be chained: this will return the first
// defined value out of $_GET['user'], $_POST['user'], and
// 'nobody'.
$username = $_GET['user'] ?? $_POST['user'] ?? 'nobody';

2
задан DarkBee 28 February 2019 в 10:43
поделиться