Après avoir suivi, vous pouvez suivre ses informations dynamiques en temps opportun
常量名 说明 LINE 当前所在的行 FILE 当前文件在服务器的路径 FUNCTIOIN 当前函数名 CLASS 当前类名 METHOD 当前成员方法名 PHP_OS PHP运行的操作系统 PHP_VERSION 当前PHP的版本 TRAIT Trait 的名字,php5.4新加 DIR 文件所在的目录 NAMESPACE 当前命名空间的名称(区分大小写)
2021-10-190个赞
Cours dans la section correspondante:Constantes et variables PHP variables externes
$_COOKIE 得到会话控制中cookie传值 $_SESSION 得到会话控制中session的值 $_FILES 得到文件上传的结果 $_GET 得到get传值的结果 $_POST 得到post传值的结果 $_REQUEST 即能得到get的传值结果,也能得到Post传值的结果
2021-10-190个赞
Cours dans la section correspondante:Constantes et variables PHP variables d'environnement
键名 含义 $_SERVER["REQUEST_METHOD"] 请求当前PHP页面的方法 $_SERVER["REQUEST_URI"] 请求的URI $_SERVER["SERVER_SOFTWARE"] 用的是哪一种服务器 $_SERVER["REMOTE_ADDR"] 客户的IP地址 $_SERVER["SERVER_ADDR"] 当前服务器的IP地址 $_SERVER["SCRIPT_FILENAME"] 主前请求文件的路径 $_SERVER["HTTP_USER_AGENT"] 当前访问这个网址的电脑和浏览器的情况 $_SERVER["HTTP_REFERER"] 上级来源(用户从哪个地址进入当前网页的) $_SERVER["REQUEST_TIME"] 当前的时间
2021-10-190个赞
Cours dans la section correspondante:Opération d'affectation de syntaxe de base PHP
符号 举例 等价式 += $x += $y $x = $x + $y -= $x -= $y $x = $x - $y *= $x *= $y $x = $x * $y /= $x /= $y $x = $x / $y %= $x %= $y $x = $x % $y .= $x .= $y $x = $x . $y
2021-10-190个赞
Cours dans la section correspondante:Opérateurs de comparaison de syntaxe de base PHP
说明 符号 大于 > 小于 < 大于等于 >= 小于等于
2021-10-190个赞
Cours dans la section correspondante:Opérations logiques de la syntaxe de base de php
举例 说明 详细说明 $x and $y 逻辑与(并且关系) $x 和$y 为真则返回真 $x && $y 同上 同上 $x or $y 逻辑或 $x,$y均为false时为假,其他情况全为真 $a||$b 同上 同上 !$x 逻辑非 取反,即true变为false,false变为true $x xor $y 逻辑异或 相同取false,相异为true
2021-10-190个赞
Cours dans la section correspondante:Fonction interne de la fonction personnalisée php
内部函数必须先调用上一级,在调用内部函数才可以
2021-10-200个赞
Cours dans la section correspondante:Tableau de types de données PHP
1、数组是一个复合类型 2、array 数组
数组是个复合类型; utf8一个中文占3个字节; array 是数组
2021-10-060个赞
Cours dans la section correspondante:Type de ressource de type de données PHP
resource 资源类型
2021-10-060个赞
gettype{传入一个变量}能够获得变量类型 var_dump is_系列函数 判断函数类型
gettype 能够获得变量的类型
2021-10-060个赞
Cours dans la section correspondante:Conversion et coercition automatiques des types de données PHP
空数组都是假,整型的0为假
2021-10-060个赞
Cours dans la section correspondante:Constantes et variables PHP variables externes
$_GET 这个外部变量,可以从表单得到输入的值
2021-10-180个赞
Cours dans la section correspondante:Références de variables pour les constantes et variables PHP
是换行符 . 连字符
2021-10-190个赞
Cours dans la section correspondante:Opérations arithmétiques des expressions et opérateurs PHP
一个等于号是赋值,两个等于号是相等的意思
一个等于号是赋值,两个等于号是相等
2021-10-190个赞
Cours dans la section correspondante:Opérations d'affectation d'expressions et d'opérateurs PHP
$x+=$y; $x=$x+$y;
2021-09-230个赞