Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-52335

PHP7 changes in uniform variable syntax

    XMLWordPrintable

Details

    Description

      https://github.com/tpunt/PHP7-Reference#uniform-variable-syntax

      Examples:

                              // old meaning            // new meaning
      $$foo['bar']['baz']     ${$foo['bar']['baz']}     ($$foo)['bar']['baz']
      $foo->$bar['baz']       $foo->{$bar['baz']}       ($foo->$bar)['baz']
      $foo->$bar['baz']()     $foo->{$bar['baz']}()     ($foo->$bar)['baz']()
      Foo::$bar['baz']()      Foo::{$bar['baz']}()      (Foo::$bar)['baz']()
      

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              Dan Poltawski Dan Poltawski
              David Monllaó David Monllaó
              Adrian Greeve Adrian Greeve
              Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona), Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                21/Dec/15