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

PHP or die

PHP or die

Webナイト宮崎 Vol.12 ~てげPHP学びたい~ - connpass https://tegehoge.connpass.com/event/199828/

Kosuke Ogawa

January 22, 2021
Tweet

More Decks by Kosuke Ogawa

Other Decks in Technology

Transcript

  1. ࣜͷྫ ➤$a = 5 ➤5 ͸ 5 ͱ͍͏஋Λ༗͢Δʮࣜʯ ➤$b =

    $a ➤$a ͸ 5 ͱ͍͏஋Λ࣋ͭʮࣜʯ ➤$c = foo(); ➤foo() ͸ԿΒ͔ͷ஋Λฦ͢ʮࣜʯ
  2. ࠷ॳͷྫΛࢥ͍ग़ͯ͠ΈΔ ➤ $fp = false or die(“hoge”); ΤϥʔʹͳΒͳ͍ ➤ $fp

    = false or return 0; PHP Parse error: syntax error, unexpected ‘return' $fp = ࣜ1 or ࣜ2