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

PHP8をざっくり解説してみる

 PHP8をざっくり解説してみる

大塚真言

January 23, 2021
Tweet

More Decks by 大塚真言

Other Decks in Programming

Transcript

  1.          

     ҎԼ 7.4 7.3 7.2 7.0-7.1 5.6 5.5ҎԼ IUUQTXUFDITDPNUFDIOPMPHJFTEFUBJMTQMQIQ όʔδϣϯ͝ͱͷ࢖༻཰
  2. Nullsafeԋࢉࢠ DPVOUSZOVMM JG TFTTJPOOVMM \ VTFSTFTTJPOVTFS JG VTFSOVMM \ BEESFTTVTFSHFU"EESFTT

      JG BEESFTTOVMM \ DPVOUSZBEESFTTDPVOUSZ ^ ^ ^ DPVOUSZTFTTJPO VTFS HFU"EESFTT DPVOUSZ 1)1 1)1 ifจʹΑΔnullνΣοΫ͕ෆཁʹͳΔ
  3. Unionܕ    !QBSBNqPBUcJOUOVNCFS   QVCMJDGVODUJPOTBNQMF OVNCFS \

    FDIPOVNCFS ^ UIJTTBNQMF UFHFIPHF ࣮ߦՄೳ QVCMJDGVODUJPOTBNQMF qPBUcJOUOVNCFS \ FDIPOVNCFS ^ UIJTTBNQMF UFHFIPHF ࣮ߦΤϥʔ 1)1 1)1 ࣮ߦ࣌ʹUnionܕͷܕνΣοΫ͕Ͱ͖Δ 1)1Ͱ͸Ξϊςʔγϣϯ ʹΑΔิ׬
  4. Matchࣜ TXJUDI  \ DBTF SFTVMU0IOP CSFBL DBTF SFTVMU5IJTJTXIBU*FYQFDUFE CSFBL

    ^ FDIPSFTVMU 0IOP FDIPNBUDI  \ 0IOP  5IJTJTXIBU*FYQFDUFE  ^ 5IJTJTXIBU*FYQFDUFE 1)1 1)1 ݫີͳൺֱɺbreakจ͕ෆཁ