摘要: php函数 php真正的力量来自函数 , 它拥有超过1000个内建的函数 除了内建的,我们还可以创建自己的函数 //函数名以字母或下划线开头 , 对大小写不敏感 function Test(){ echo "Hello World!"; } Test(); echo "<br>"; //传参 , 类 阅读全文
posted @ 2021-11-13 08:52 YYYStudy 阅读(29) 评论(0) 推荐(0)
摘要: php数组 使用array() 函数创建数组 php的三种数组类型 索引数组 : 带有数字索引的数组 //索引从0开始 $animal=array("Dog","Cat","Tiger"); $animal2=array(); $animal2[0]="Lion"; $animal2[1]="Mon 阅读全文
posted @ 2021-11-13 07:52 YYYStudy 阅读(56) 评论(0) 推荐(0)