$30 off During Our Annual Pro Sale. View Details »

近況PHP / PHP in now a days

近況PHP / PHP in now a days

at: TechFeed Conference 2022
url: https://techfeed.io/events/techfeed-conference-2022
date: 2022/05/14
speaker: uzulla

uzulla

May 14, 2022
Tweet

More Decks by uzulla

Other Decks in Programming

Transcript

  1. ʮͰ΋ΏΔ;ΘܕͰ͠ΐʁʯ w Ҿ਺΍ฦΓ஋Ͱ͸ɺࠓ͸5ZQF&SSPSͰఀࢭͰ͖·͢ ɹɹdeclare(strict_types=1); // ๨Εͣʹ ɹɹ( fn(int $a) =>

    print($a) )("1"); // TypeError!! PHP Fatal error: ....Uncaught TypeError: ... must be of type int, string given
  2. ʮಈతʯ͸ٻΊΒΕ͍ͯͳ͍ w new $class($param)໓ΜͰ΄͍͠ ݸਓͷײ૝ w JGจͰݻΊͳ͘ͱ΋؆ܿʹݎ͘ॻ͘͜ͱ͕Ͱ͖Δݱ୅ w 1010Ͱݎ͘ॻ͘ݶΓɺ͔ͬ͠Γͱͨ͠ίʔυ͕ॻ͚Δ w

    Ҿ͖ଓ͖ڐ͞ΕΔΏΔ;ΘίʔυͱΏΔ;ΘϑϨʔϜϫʔΫ w ͜ͷࠞࡏɾڥքΛͲ͏ཱ྆͢Δ͔͕ݱࡏͷ՝୊ͱࢥ͏ w ੲ͸ ࠓ΋ 1FSM΍3VCZ͕ત·͔͕ͬͨ͠ࠓ͸ҧ͏
  3. ڧԽ͞Ε͍ͯΔ΋ͷ w Ҿ͖ଓ͖$PNQPTFS1BDLBHJTUͳͲΤίγεςϜ w &OVNɺ6/*0/ܕͳͲॊೈɾιϦουͳݴޠ΁ͷมԽ͔ͭ ಈతͳ෺ "UUSJCVUF౳ ΋௥Ճʢ+BWB͍ݴޠʹͳΓͭͭ͋Δʣ w NBUDIࣜͱ͔ɺGO

    ͱ͔ɺTQSFBE΍SFBEPOMZͷ͓͠ΌΕ͞ ʁ w ྺ࢙తܦҢͷ࡟ݮʢ#$౳Λ൐͏Ϩϕϧͷվֵʣ w &'*ʢʮ1)1FSͩͬͯ$ϥΠϒϥϦୟ͖͍ͨΑͳʂʢʁʁʣʯʣ
  4. ݴޠʮ֎ʯͷਐԽ w ଞݴޠಉ༷ʹ3FRVFTU3FTQPOTFΦϒδΣΫτ͕ීٴ w 143  EFGBDUPͱ͸ݴ͍ͮΒ͍͕ɺม׵Ͱ͖Δ΋ͷ͕ଟ͍ w 84(*3BDL&YQSFTTతʹ ɺಠࣗ"QQ4FSWFS'8ͷ૬ޓޓ׵

    w ϓϩηεͰ/SFRΛ͞͹͘ɾ͚Δɺςετ͠΍͘͢ͳͬͨ w ແ࿦ɺݹ͍1)1ελΠϧͱ͸ܾผ͢Δඞཁ͸͋Δ ྫɿ$_GET, $_SESSION, echo "<html>"ͷഉআ