A full list of PHP operators follows in the section Operator Precedence.И квадратных скобок там нет.
If both operands are numeric strings, or one operand is a number and the other one is a numeric string, then the comparison is done numerically.
If a string is compared to a number or a numeric string then the string was converted to a number before performing the comparison.
++$data = '{"counter":{"mirrors2":[{"site":"test.example.com"},{"site":"test2.example.com"},{"site":"test3.example.com"},{"site":"test4.example.com"},{"site":"test5.example.com"}]}}';
$headers = [
"Host: api-metrika.yandex.net",
"Authorization: OAuth $TOKEN_VAR",
"Content-Type: application/x-yametrika+json",
++ "Content-Length: " . strlen($data),
];
--$data = '{"counter":{"mirrors2":[{"site":"test.example.com"},{"site":"test2.example.com"},{"site":"test3.example.com"},{"site":"test4.example.com"},{"site":"test5.example.com"}]}}';
The special area of "Etc" is used for some administrative zones, particularly for "Etc/UTC" which represents Coordinated Universal Time. In order to conform with the POSIX style, those zone names beginning with "Etc/GMT" have their sign reversed from the standard ISO 8601 convention. In the "Etc" area, zones west of GMT have a positive sign and those east have a negative sign in their name (e.g "Etc/GMT-14" is 14 hours ahead of GMT)https://en.wikipedia.org/wiki/Tz_database#Area
--$sql2 = "SELECT * FROM `servers`";
++$sql2 = "SELECT 'id' FROM `servers` WHERE `pay_date` = CURDATE()";
--$ress2 = mysqli_fetch_assoc($res2);
--while($ress2) {
++while ($ress2 = mysqli_fetch_assoc($res2)) {
$hash = password_hash(null, PASSWORD_DEFAULT);
var_dump($hash);
var_dump(password_verify(null, $hash));
// string(60) "$2y$10$mDV3J0gVNslL83.runLF0O4E2pwTGiCgKoZ2b0rjtovP5s/OxVuZK"
// bool(true)
function createUser(): object
{
return (object)[
'name' => 'Bankai',
'age' => 40,
];
}
function showUser(object $user): void
{
printf('%s : %s<br>', $user->name, $user->age);
}
function clearUser(object &$user): void
{
echo "Деструктор";
$user = null;
}
$user = createUser();
showUser($user);
clearUser($user);
unset($user);