Fresh selection with links to news and materials. In the release: PHP 7.2.0 Alpha 2, a couple of new RFCs, materials from YiiConf and FWDays, PHP rootkits, and much more.
Enjoy reading!
try { somethingSketchy(); } retry 3 (RecoverableException $e, $attempt) { echo "Failed doing sketchy thing on try #{$attempt}. Retrying..."; sleep(1); } catch (RecoverableException $e) { echo $e->getMessage(); }
try { somethingSketchy(); } catch (RecoverableException $e) retry; // Go to top of try block }
??
added in PHP 7.0: if ($_POST["action"]?? === "submit") { // Form submission logic } else { // Form display logic }
Thanks for attention!
If you notice an error or inaccuracy - please inform the PM .
Write questions and suggestions by mail or twitter .
Send link
Quick search in all digests
← Previous release: PHP Digest number 110
Source: https://habr.com/ru/post/331630/
All Articles