Blogger Information
Blog 3
fans 0
comment 0
visits 2244
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
函数
夏末微凉的博客
Original
652 people have browsed it

<?php

         function php1(){

              echo "大家好!".'<br/>';

}

        php1();

         pHp1();      //函数不区分大小写


        function php2($a){

             echo 'a='.$a.'<br/>';

}

            php2(10);          //无参函数调用时必须加上参数,有参参数调用可以不用

        function php3($c,$a=1,$b=3){

             echo 'c='.$c.'<br/>'.'a='.$a.'<br/>'.'b=='.$b.'<br/>';

}

        php3(5);           //当函数中有无参函数是要放在最前面

?>


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post