اختيار جديد مع روابط للأخبار والمواد. في القضية: 4 مقترحات RFC مقبولة لـ PHP 8 ، بما في ذلك السمات (التعليقات التوضيحية / الديكور) ، وجزء من الأدوات المفيدة ، والمؤتمرات والاجتماعات عبر الإنترنت ، ومقاطع الفيديو ، وملفات البودكاست والمزيد.استمتع بالقراءة!
<< >>
<<ExampleAttribute>> class Foo { <<ExampleAttribute>> public const FOO = 'foo'; <<ExampleAttribute>> public $x; <<ExampleAttribute>> public function foo(<<ExampleAttribute>> $bar) { } } $object = new <<ExampleAttribute>> class () { }; <<ExampleAttribute>> function f1() { } $f2 = <<ExampleAttribute>> function () { }; $f3 = <<ExampleAttribute>> fn () => 1;
<<Deprecated>>
trigger_error
<<Deprecated>> function test() {} // Deprecated: Function test is deprecated in %s <<Deprecated("use test3() instead")>> function test2() {} // Deprecated: Function test2 is deprecated use test3() instead in %s
class Uri { private function __construct( ?string $scheme, ?string $user, ?string $pass, ?string $host, ?int $port, string $path, ?string $query, ?string $fragment, // <-- ! ) { ... } }
PDO::ERRMODE_EXCEPTION
TypeError
match
match ($x) { 0 => { foo(); bar(); baz(); }, }
expect*()
RuntimeInterface
!— , , ..Telegram- PHP Digest.← : PHP- № 178