php学习笔记1—(a+b)时间:2022-10-09 23:40:55php确实很像bash shell script和c的混合,大概看完这些代码之后,应该就能写一些东西了。 而且它执行的时候是直接从源代码进行解释执行的。安装配置就不说了,照着www.php.net去做就OK了。p.s. Zend Studio这东西不错。 P.S. php5开始才支持oop。 a_plus_b.html < html > < head > < title > A + B </ title > </ head > < body > < form action ="a_plus_b.php" method ="POST" > A: < input type ="text" name ="A" >< br > B: < input type ="text" name ="B" >< br > < input type ="submit" >< input type ="reset" > </ form > </ body > </ html > a_plus_b.php <? php # 3个用来接收的全局变量:$_POST, $_GET, $_REQUEST $a = $_POST [ " A " ]; $b = $_POST [ " B " ]; $c = $a + $b ; echo $a . ' + ' . $b . " = $c " ; ?>