相关疑难解决方法(0)

Reference — What does this symbol mean in PHP?

What is this?

This is a collection of questions that come up every now and then about syntax in PHP. This is also a Community Wiki, so everyone is invited to participate in maintaining this list.

Why is this?

It used to be hard to find questions about operators and other syntax tokens.¹
The main idea is to have links to existing questions on Stack Overflow, so it's easier for us to reference them, not to copy over content from …

php arguments symbols operators

4314
推荐指数
21
解决办法
63万
查看次数

<>和!=之间有什么区别

在PHP中检查不相等(没有检查类型),你可以这样做:

if( A != B ) {
    DO SOMETHING;
}
Run Code Online (Sandbox Code Playgroud)

但你也可以这样做,结果相同:

if( A <> B ) {
    DO SOMETHING;
}
Run Code Online (Sandbox Code Playgroud)

有什么区别吗?

使用!=过度<>是以任何方式,形状或形式改变评估?

php operators

47
推荐指数
4
解决办法
1万
查看次数

PHP的<>运算符

什么是<>运营商意味着什么?

它是否相同!=(不相等)?

示例代码

$foo = 'text';

if ($foo <> 'photo') {
    echo 'foo';
}
else {
    echo 'bar';
}
Run Code Online (Sandbox Code Playgroud)

php operators

1
推荐指数
1
解决办法
2404
查看次数

标签 统计

operators ×3

php ×3

arguments ×1

symbols ×1