What’s New in PHP 7.3 in 30 Seconds in Diffs

What’s New in PHP 7.3 in 30 Seconds in Diffs

Blog
No time but eager to hear PHP news? PHP 7.3 is out in December 2018 and it brings 173 changes. Which are the most useful ones? From features that might be the most interesting to those lesser ones, that anybody will rarely use. 1. Comma After the Last Argument Do you know this? $array = [ 1, + 2, ]; We'll be able to do this: $this->someFunction( $arg, + $arg2, ); But still not this: function someFunction( $arg, + $arg2, ) {} Thanks Jacob for pointing this difference out. 25 seconds to go... 2. First and Last Array Key array_key_first $items = [ 1 => 'a', 2 => 'b', ]; -reset($items); -$firstKey = key($items); +$firstKey = array_key_first($items); var_dump($firstKey); // 1 array_key_last $items = [ 1 => 'a', 2 => 'b',…
Read More
Fundamentals Of Web Applications Security .

Fundamentals Of Web Applications Security .

Blog
Over the past ten years, we have heard much about the security of web applications, and the threats that can come from using them. For better or worse, modern businesses have become increasingly dependent on the use of web applications developed agile; from complex infrastructure systems to IoT devices. Attacks on web applications provide intruders with ample opportunities such as: -Access to a company's internal resources and sensitive information; -The opportunity to disrupt the functioning of an application or bypass business logic; -Financial gains for the attacker, and losses, both financial and reputational, for the owner of web applications. Users of web applications are at risk, because if an attack is successful, the intruder can steal credentials, perform actions on websites on behalf of users, and infect a system with…
Read More
The Power of Web Components

The Power of Web Components

Blog
Background Ever since the first animated DHTML cursor trails and “Site of the Week” badges graced the web, re-usable code has been a temptation for web developers. And ever since those heady days, integrating third-party UI into your site has been, well, a semi-brittle headache. Using other people’s clever code has required buckets of boilerplate JavaScript or CSS conflicts involving the dreaded !important. Things are a bit better in the world of React and other modern frameworks, but it’s a bit of a tall order to require the overhead of a full framework just to re-use a widget. HTML5 introduced a few new elements like <video> and <input type="date">, which added some much-needed common UI widgets to the web platform. But adding new standard elements for every sufficiently common web…
Read More