<noframes id="7xbfr"><pre id="7xbfr"><output id="7xbfr"></output></pre>

      <big id="7xbfr"><font id="7xbfr"><listing id="7xbfr"></listing></font></big>
        <p id="7xbfr"></p>
        <menuitem id="7xbfr"></menuitem>

          <video id="7xbfr"><mark id="7xbfr"><listing id="7xbfr"></listing></mark></video>
            <form id="7xbfr"></form>

          <delect id="7xbfr"><var id="7xbfr"></var></delect>

          PHP中動態加載方法

          時間:2020-12-13 09:45:48 類型:PHP
          字號:    

            php中你可以動態調用函數,分為以下步驟:

            1. 定義一個函數

            2. 將函數名(字符串)賦值給一個變量

            3. 使用變量名代替函數名動態調用函數

          function add($a, $b){
             echo $a + $b;
          }
          function jian($a,$b){
          	echo $a - $b;
          }
          function cheng($a, $b){
          	echo $a * $b;
          }
          $fun = "add";
          $fun(10,50);


          黄网站免费 <