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

如何把大象放進冰箱裡 - 開源社PHP入門

Shouko
November 21, 2014

如何把大象放進冰箱裡 - 開源社PHP入門

Shouko

November 21, 2014
Tweet

More Decks by Shouko

Other Decks in Technology

Transcript

  1. &[PCOKE9GDUKVG ō 樽禷傓櫢 ō 傓櫢䎛⑈⺚⧛⹻䥥㵵竼 ō ⯻䎛俵⼶䰛㌈忋珮⃮⑘ⅳ▶㌈ ō ▶禷傓櫢 ō

    傓櫢⑈⺚䠒∛㧮⥉▶禷䠃䠀 ō ⛐⇆竑榺⛲㓷⯻⛲䥥ⅳ▶ GZ䠺峡竡嶷⮨
  2. &[PCOKE9GDUKVG ō 樽禷傓櫢 ō 傓櫢䎛⑈⺚⧛⹻䥥㵵竼 ō ⯻䎛俵⼶䰛㌈忋珮⃮⑘ⅳ▶㌈ ō ▶禷傓櫢 ō

    傓櫢⑈⺚䠒∛㧮⥉▶禷䠃䠀 ō ⛐⇆竑榺⛲㓷⯻⛲䥥ⅳ▶ GZ䠺峡竡嶷⮨
  3. 6JGZ#/25VCEM 作業系統 網 ⾴頁 伺 服 器 直 譯 器

    資料庫 靜態檔案 使 ⽤用 者 PHP 程式
  4. CTTC[ <?php $a = array(); $a[0] = 100; $a[] =

    'Kerker'; $a['haha'] = array( 0 => "零", 1 => "⼀一", 'bla' => 3 ); echo "<pre>"; print_r($a); ?>
  5. *6/.HQTO ō OGVJQF⎔葶孉⢏徨㡺䥥㢚㾶 ō )'6⨉傓⨡祱橃⇆!RCTCXRCTCX㉃ㇰ⸹⨉ ō 蓕⛩䠉≧ׅ痏㉸׆ GZ)QQING5GCTEJ  ō

    2156⃮㧤歐䰛⨉傓⨡祱橃 ō 蓕⛩䠉≧ׅ⎔葶׆ GZ徝㡨崜⑫  ō CEVKQP⎔葶孉⢏徨㡺䥥䧏㳺 ō 櫱崎甬䠺䵛⎔┑⛭⃡櫢 GZ畘㤐亥≬掄㴄  ō 䧙⻮惐㉲㓷⑗↷傓⨡⎔┑⑗↷櫢褕㓷㤐⑗↷傓䶺
  6. *6/.HQTO ō ⨉*6/.ℎ崎峩孉⢏ ō 櫱崎㡨⸸㷥KPRWVPCOGň痓䴒ʼnXCNWGň櫱崎甬ʼn  ō 㔴◟◟KPRWVV[RGňEJGEMDQZʼnPCOGň痓䴒ʼnXCNWGň甬ʼn  ō

    ⢏蓤稌薚KPRWVV[RGňTCFKQʼnPCOGň痓䴒ʼnXCNWGň甬ʼn  ō ⃬㖪ㇰ蓤⢏UGNGEVPCOGň痓䴒ʼn QRVKQPXCNWGň甬ʼn UGNGEV  ō ⯻嬭㡨⸸VGZVCTGCPCOGň痓䴒ʼn VGZVCTGC  ō 葶ⓛ稌薚KPRWVV[RGňUWDOKVʼnXCNWGň稌薚⃫䥥⸸ʼn  ō ⨉2*2ℎ痏㉸孉⢏甬 ō A)'6楄⓸褕≠䠉A)'6=Ņ痓䴒ņ?痏ⓛ甬 ō A2156楄⓸褕≠䠉A2156=Ņ痓䴒ņ?痏ⓛ甬
  7. *6/.HQTO <html><head><meta charset="utf-8" /></head> <body> <form method="GET"> 乘數:<input name="multiplier"><br />

    被乘數:<input name="multiplicand"><br /> <input type="submit" value="送出"> </form> <br /><br/><br/> <?php if(!empty($_GET)){ $result = $_GET['multiplier'] * $_GET['multiplicand']; echo "你的算式是: “; echo $_GET['multiplier']." x ".$_GET['multiplicand']; echo "<br />"; echo "答案是: ".$result; } ?> </body> </html>