Identical Strings in PHP not matching
This question already has an answer here:
Here is your problem:
if ($current == null || $current = "") {
// ^ now `$current` is "", an empty string
You assign a new value to $current
, an empty string.
You probably want something like:
if ($current == null || $current == "") {
// ^^ now you are comparing
链接地址: http://www.djcxy.com/p/58466.html
上一篇: 用php中的if语句插入数据库表
下一篇: PHP中的相同字符串不匹配