本文共 2623 字,大约阅读时间需要 8 分钟。
php知识点汇总与解答
This section contains Aptitude Questions and Answers on PHP Operators.
本节包含有关PHP运算符的 Aptitude问答。
Arithmetic Operators
Logical Operators
Array Operators
String Operators
Options:
Correct answer: 4A, B, C, and D
All given options are correct types of operators are used in PHP.
算术运算符
逻辑运算符
数组运算符
字符串运算符
选项:
正确答案:4 A,B,C和D
所有给定的选项都是PHP中使用的正确运算符类型。
Correct answer: 281
The above code will print "81" on the webpage. Because ** operator is used for exponential.
正确答案:2 81
上面的代码将在网页上打印“ 81” 。 因为**运算符用于指数。
Correct answer: 1Arithmetic operator
The ** operator belongs to arithmetic operators.
正确答案:1 算术运算符
**运算符属于算术运算符。
==
!=
===
< = >
Options:
Correct answer: 4A, B, C, and D
All the given options are comparison operators.
==
!=
===
<=>
选项:
正确答案:4 A,B,C和D
所有给定的选项都是比较运算符。
$NUM2);?>
Correct answer: 1bool(true)
The above code will print bool(true) on the webpage, the <> operator is "not equal to" operator.
正确答案:1 布尔值(true)
上面的代码将在网页上打印bool(true) , <>运算符为“不等于”运算符。
Correct answer: 1bool(true)
The above code will print bool(true) on the webpage.
正确答案:1 布尔值(true)
上面的代码将在网页上打印bool(true) 。
$NUM2);?>
Correct answer: 2int(-1)
The above code will print "int(-1)" on the webpage.
正确答案:2 整数(-1)
上面的代码将在网页上打印“ int(-1)” 。
Correct answer: 4@
The @ operator is not available in PHP.
正确答案:4 @
@运算符在PHP中不可用。
Correct answer: 1india
The above code will print the "india" on the webpage.
正确答案:1 印度
上面的代码将在网页上打印“印度” 。
Correct answer: 3??
The ?? operator is known as the null coalescing operator in PHP.
正确答案:3 ??
?? 运算符在PHP中被称为空合并运算符。
翻译自:
php知识点汇总与解答
转载地址:http://uotzd.baihongyu.com/