2008-04-30 PHPで関数を作成 PHP <?php /* 関数putsを宣言 */ function display($str) { printf("%s world",$str); } /* 関数displayを呼び出し */ display("hello"); ?>