Home > Backend Development > PHP Tutorial > PHP语句,$map['sex'] = "男“ 或者等于女怎么写

PHP语句,$map['sex'] = "男“ 或者等于女怎么写

WBOY
Release: 2016-06-23 14:01:00
Original
939 people have browsed it

PHP语句,$map['sex'] = "男“ 或者等于女 怎么写


回复讨论(解决方案)

if($map['sex'] = "男" || $map['sex'] = "女")
Copy after login
Copy after login
Copy after login

$map['sex'] = "男“ || $map['sex'] = "女“

if($map['sex'] = "男" || $map['sex'] = "女")
Copy after login
Copy after login
Copy after login

又是你呀,上次也是你回答的,刚找到答案,应该是==,不是= 。分给你吧


if($map['sex'] = "男" || $map['sex'] = "女")
Copy after login
Copy after login
Copy after login

又是你呀,上次也是你回答的,刚找到答案,应该是==,不是= 。分给你吧
哈哈 你前面给的 = 我也跟着写=了 突然发现自己犯这么低级的错误了 刚起来脑袋不清醒

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template