Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP の現場から

shin1x1
July 15, 2017

PHP の現場から

2017/07/15 PHP カンファレンス関西 2017 https://2017.kphpug.jp/

shin1x1

July 15, 2017
Tweet

More Decks by shin1x1

Other Decks in Technology

Transcript

  1. &MPRVFOU 3FQPTJUPSZ <?php // PHP 7.1 function something(?int $i): ?Foo

    {} // PHP 7.0 ҎԼ function something(int $i = null): Foo {} ܕએݴʢOVMMBCMFʣ
  2. &MPRVFOU 3FQPTJUPSZ <?php class FooCollection implements \ArrayAccess { // (snip)

    } $collection = new FooCollection(); $collection['key1'] = 'foo'; $value = $collection[‘key1']; "SSBZ"DDFTT
  3. s &MPRVFOU 3FQPTJUPSZ <?php class BarCollection implements \IteratorAggregate { //

    (snip) } $collection = new BarCollection(); foreach ($collection as $v) { echo $v; } 5SBWFSTBCMF *UFSBUPS"HHSFHBUF