小兔网


Deprecated: Required parameter $toggle follows optional parameter $filterGroups in /home/wwwroot/ixiaotu.com/plugins/content/easycontentrestriction/easycontentrestriction.php on line 289

Deprecated: Required parameter $subnum follows optional parameter $n in /home/wwwroot/ixiaotu.com/plugins/content/easycontentrestriction/aop/AopClient.php on line 802

Deprecated: Required parameter $charset follows optional parameter $n in /home/wwwroot/ixiaotu.com/plugins/content/easycontentrestriction/aop/AopClient.php on line 802

Deprecated: Required parameter $length follows optional parameter $start in /home/wwwroot/ixiaotu.com/plugins/content/easycontentrestriction/aop/AopClient.php on line 815

函数就是一段封装好的,可以重复使用的代码,它使得我们的程序更加模块化,不需要编写大量重复的代码。

函数可以提前保存起来,并给它起一个独一无二的名字,只要知道它的名字就能使用这段代码。函数还可以接收数据,并根据数据的不同做出不同的操作,最后再把处理结果反馈给我们。