1. <?php
    2. function show($ceshi){
    3. echo $ceshi;
    4. }
    5. $fun='show';
    6. $fun('i am test');
    <?php
    
    function test1(){
        echo 'i am test1';
    }
    
    function test2(){
        echo 'i am test2';
    }
    $fun=rand(1,10)%2?'test1':'test2'; // fun函数等于1到10之间随机数 除2余模, true 为test1 函数 否则为test2
    $fun();
    ?>