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
              Jake Dallimore, Mathew May, Mihail Geshoski, Jake Dallimore, Mathew May, Mihail Geshoski, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                21/Dec/15