PHP Digest No. 121 (November 20 - December 10, 2017)


    Fresh selection with links to news and materials. In release: PHP 7.2.0, Symfony 4 and other releases, the offer from PHP Internals, materials on frameworks, asynchronous PHP, the portion of useful tools, and many other things. Enjoy reading!


    News and Releases



    PHP internals


    • RFC: Explicit call-site pass-by-reference - Great offer from Nikita Popov. At the moment, the fact that the function takes an argument by reference is indicated only in the definition of the function itself:

      function inc(&$num) { $num++; }
      $i = 0;
      inc($i);
      var_dump($i); // int(1)
      

      It is proposed to make it possible to explicitly indicate the transfer by reference. Thus warning the developer that the passed variable will change:

      function inc(&$num) { $num++; }
      $i = 0;
      inc(&$i);
      var_dump($i); // int(1)
      

    Instruments



    Materials




    Entertaining


    Thanks for attention!

    If you notice a mistake or inaccuracy - please inform me in PM .
    Questions and suggestions write to mail or twitter .

    Send link
    Search links for all digests

    Previous release: PHP Digest No. 120


    Also popular now: