function_exists.php

来源:互联网 发布:ubuntu安装qq 编辑:程序博客网 时间:2024/05/18 00:23
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> function_exists.php </title>
  <meta charset="UTF-8">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
 </head>


 <body>
  <?php
function add($a,$b=2)
{
return $a + $b;
}
if(function_exists('add'))
{
echo add(3) . '<br>';
echo add(3,3) . '<br>';
}


if(function_exists('addxx'))
{
echo 'addxx<br>';
}


  ?>


 </body>

</html>


5
6


0 0