Hello html head titleFirst programtitle head body php
Hello <html> <head> <title>First program</title> </head> <body> <? php echo “Hello!"; ? > </body> </html> 10/31/2021 中原大學校園網路策進會 5
常數型態 True False 其他例子 http: //member. ettoday. com/book/3. 2. 1. php. htm 10/31/2021 中原大學校園網路策進會 9
變數型態 string integer double array object 10/31/2021 中原大學校園網路策進會 10
switch 迴圈 switch (expr) { case expr 1: statement 1; break; case expr 2: statement 2; break; default: statement. N; break; } 注意條件出現的優先性 10/31/2021 中原大學校園網路策進會 24
函式 <? php function add 2($a, $b) { return $a+$b; } echo add 2(3, 4); ? > 10/31/2021 中原大學校園網路策進會 32
PHP 函式導覽 PHP Bible http: //member. ettoday. com/book/ 教你邊查邊寫^^ 10/31/2021 中原大學校園網路策進會 33
參考網站 PHP Bible http: //member. ettoday. com/book/ PHP 官方網站 http: //www. php. net Google http: //www. google. com. tw 10/31/2021 中原大學校園網路策進會 37
- Slides: 38