Blogger Information
sea
Blog
12
fans
0
comment
0
visits
6057
integral:0
P beans:24
  • List of blog posts
  • 数组计算操作

    数组的计算操作(更新中) count/sizeof 函数返回数组的元素个数 $phone = array('苹果','小米','华为','锤子','联想');echo count($phone); // 5 $price = array( ...

    2021-12-19 19:54 Read 635 comment 0
  • 数组功能操作

    数组判断操作 in_array 函数判断一个元素值是否在数组中 $phone = array('苹果','小米','华为','锤子','联想');echo in_array('华为',$phone); // 1;存在返回1,不存在返回空 array...

    2021-12-19 17:23 Read 465 comment 0
  • 初见数组(操作数组元素值)

    数组分类 索引数组 // 数字作为键$fruts = array('苹果','梨子','香蕉','橘子'); 关联数组 // 字符串作为键$computer = array( '联想'=>'Y900P', '神州'=>'Z8', ...

    2021-12-19 15:18 Read 581 comment 0
  • php基础知识02函数

    关于函数的基础知识函数声明与调用function fnArea() { return 20.5;}echo fnArea(); 参数的传递方式 按值传递参数 function fnArea($pi,$r){ return $pi * $r...

    2021-12-14 20:29 Read 352 comment 0
  • php基础知识01

    php 注释 单行注释//这里是输出多行注释 /* * 第一行注释 * 第二行注释 */ echo echo 输出文本时最好什么也不加;传递多个参数,不能使用小括号 echo 123;echo (123);echo 112,223;echo (112...

    2021-12-14 20:25 Read 392 comment 0
  • mamp pro的使用(更新中)

    mamp pro的网站根目录 httpd.conf文件我在这里没有找到永久改变根目录的方式,因此使用默认目录 设置主页以文件目录呈现 开启PHP代码错误提示

    2021-12-14 11:24 Read 799 comment 0