Ryan Weaver, long-time contributor to the PHP ecosystem, needs our help! Please consider making a donation now to support him.
Modern PHPWhile I wasn't paying attention, PHP got quite good The last time I've used PHP was probably around 2017, although it was just in the context of supporting some WordPress sites. By that time 7.2 had already been released, but I had no idea. I wanted to avoid working with PHP at all costs. This month I took some time to check what good things have been added to the language that I was una
{ if (! this.initialized) { search.start(); this.initialized = true; } if (value) { setTimeout(() => { this.$el.querySelector('input').focus(); }, 100); } }); }, }" x-dialog x-model="searchModalIsOpen" x-cloak class="fixed inset-0 z-10" @keydown.slash.meta.window="searchModalIsOpen = !searchModalIsOpen" @keydown.k.meta.window="searchModalIsOpen = !searchModalIsOpen" @keydown.escape.window="searchM
This sample is an excerpt from the ebook Front Line PHP. Check out the entire book to learn how to build modern applications in PHP 8.3. # Destructuring 7.1 You can destructure arrays to pull out several elements into separate variables: $array = [1, 2, 3]; // Using the list syntax: list($a, $b, $c) = $array; // Or the shorthand syntax: [$a, $b, $c] = $array; You can skip elements: [, , $c] = $arr
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く