04/19/2019
The April version of the "Latest in PHP" is out! Shared at our monthly TrianglePHP meeting, here are the things you need to know. If you'd like the raw slides or use this as a starting point for your own meetup, please visit our GitHub Repository.
7
branch)More Info:
More Info:
// before
function array_values_from_keys($arr, $keys) {
return array_map(function ($x) use ($arr) { return $arr[$x]; }, $keys);
}
// after
function array_values_from_keys($arr, $keys) {
return array_map(fn($x) => $arr[$x], $keys);
}
https://wiki.php.net/rfc/arrow_functions_v2
Deprecate and disable short_open_tag
in PHP 7.4 and remove PHP's short open tags in PHP 8.0.
<? // nope!
<?php // yup!
https://wiki.php.net/rfc/deprecate_php_short_tags
...we can't further improve the performance of PHP unless we use JIT
...using JIT may open the door for PHP being more frequently used in other, non-Web, CPU-intensive scenarios
...JIT can provide us with the ability to develop built-in functions in PHP, instead of C...can open the door to faster innovation
https://wiki.php.net/rfc/jit https://stitcher.io/blog/php-jit
$options = ['enabled' => true, 'compression' => 'gzip'];
$enabled = $options['enabled'];
$compression = $options['compression'];
$options = ['enabled' => true, 'compression' => 'gzip'];
['enabled' => $enabled, 'compression' => $compression] = $options;
https://blog.frankdejonge.nl/array-destructuring-in-php/
Longhorn PHP Conference 2019 May 2–4, Austin, TX https://www.longhornphp.com/
php[tek] May 21–23, Atlanta, Georgia https://tek.phparch.com
Dutch PHP Conference 2019 June 6–8, Amsterdam, The Netherlands https://www.phpconference.nl
US: Write less complex, more readable code presented by Jason McCreary May 16, 2019 at 6:00pm PDT
UK: Git Legit presented by Pauline Vos May 16, 2019 at 11:00am PDT
ScotlandPHP 2019 CfP Deadline: April 22, 2019 November 9–10, Edinburgh, Scotland https://scophp.co/2019
PHP.Barcelona Conferenence 2019 CfP Deadline: September 30th, 2019 November 12–13, Barcelona, Spain https://php.barcelona
All Things Open Oct 13-15, 2019 http://allthingsopen.org
TDB Presented By YOU?!?!
Thursday, May 16, 6pm @ Atlantic BT
Need an Idea?
Who's hiring? Who's looking? What are you looking for? Book Swap