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);
<?php
require 'test/foo.php';
<?php
require './buz.php';
<?php
echo 'buz', PHP_EOL;
$ php main.php
PHP Fatal error: Uncaught Error: Failed opening required './buz.php'
<?php
require __DIR__ . '/test/foo.php';
<?php
require __DIR__ . '/buz.php';
<?php
echo 'buz', PHP_EOL;
$ php main.php
buz
Files SHOULD either declare symbols (classes, functions, constants, etc.) or cause side-effects (e.g. generate output, change .ini settings, etc.) but SHOULD NOT do both.