After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:Simple variables of PHP basic syntax
<?php $x=100; $y=20; echo $x+$y; ?>
2019-01-280个赞
Courses in the relevant section:PHP data type NULL type
<?php $x= 1; $y=null; if(empty($x)){ echo '我很爱黄弘梅'; } else{echo '我等她';} echo '<br>'; if(isset($y,$x)){ echo '黄弘梅'; } else { echo 'hallo'; } ?>
2019-01-280个赞
Courses in the relevant section:View and determine data types of PHP data types
is_ + 类型 判断是否是什么..
2019-01-280个赞
Courses in the relevant section:Atoms in PHP regular expression representation
\d 匹配0-9 \D 匹配除了0-9以外的字符 \w a-z A-Z 0-9 \W除了0-9 A-Z a-z以外的所以字符 \s匹配所以空白字符\n \t \r 空格 \S匹配所有非空白字符 [] 指定范围的原子
2019-06-290个赞
视频中那里改成这样$sql = "insert into stu (name, sex, age, class) values ('{$name}', '{$sex}','{$age}','{$class}')";
2019-07-290个赞