variant_and Performs a bitwise AND operation between two variants php函数


variant_and

(PHP 5)

variant_andPerforms a bitwise AND operation between two variants

说明

mixed variant_and ( mixed $left , mixed $right )

Performs a bitwise AND operation. Note that this is slightly different from a regular AND operation.

参数

left

The left operand.

right

The right operand.

Note:

As with all the variant arithmetic functions, the parameters for this function can be either a PHP native type (integer, string, floating point, boolean or NULL), or an instance of a COM, VARIANT or DOTNET class. PHP native types will be converted to variants using the same rules as found in the constructor for the VARIANT class. COM and DOTNET objects will have the value of their default property taken and used as the variant value.

The variant arithmetic functions are wrappers around the similarly named functions in the COM library; for more information on these functions, consult the MSDN library. The PHP functions are named slightly differently; for example variant_add() in PHP corresponds to VarAdd() in the MSDN documentation.

返回值

Variant AND Rules
If left is If right is then the result is
TRUETRUETRUE
TRUEFALSEFALSE
TRUENULLNULL
FALSETRUEFALSE
FALSEFALSEFALSE
FALSENULLFALSE
NULLTRUENULL
NULLFALSEFALSE
NULLNULLNULL

参见

  • variant_or() - Performs a logical disjunction on two variants



相关阅读:
variant_cast Convert a variant into a new variant object of another type
variant_cat concatenates two variant values together and returns the result
variant_cmp Compares two variants
variant_date_from_timestamp Returns a variant date representation of a Unix timestamp
variant_date_to_timestamp Converts a variant date/time value to Unix timestamp
variant_div Returns the result from dividing two variants
variant_eqv Performs a bitwise equivalence on two variants
variant_fix Returns the integer portion of a variant
variant_get_type Returns the type of a variant object
variant_idiv Converts variants to integers and then returns the result from dividing them
variant_imp Performs a bitwise implication on two variants
variant_int Returns the integer portion of a variant
variant_mod Divides two variants and returns only the remainder
variant_mul Multiplies the values of the two variants
快速导航
PHP MySQL HTML CSS JavaScript MSSQL AJAX .NET JSP Linux Mac ASP 服务器 SQL jQuery C# C++ java Android IOS oracle MongoDB SQLite wamp 交通频道 作文范文 人事助理岗位职责 当务之急反义词_当务之急近义词 读《麻雀变凤凰》有感400字 完美黑道公主。作文1600字 一堂特别的语文课作文450字 用弱点来刻薄人 散文随笔:笔尖 魔炎猩猩,对不起作文1400字 区优秀少先队员先进事迹材料 高中高三作文1000字:祖国在我心中—穿越60年时空看中国 空白个人简历范文 甜蜜幸福qq说说 复照青苔上的上一句 永远的初一(3)班作文800字 中学2015-2016年第二学期综合科组工作计划 雪花儿飘飘100字 沥青混合料的组成结构与强度 对不起、 是我爱错了你。 更对不起、我爱你 我是个书迷作文750字 2015服务中心工作总结 生日快乐 世上公德到哪去了作文400字 我能写日记 陌小轩所有资料 2016当前路政执法现状的调研报告 中国共产党入党誓词的内容 伤感失落个性签名 累了痛了就好好放放自己 快乐,无处不在作文600字 《快乐星球》的后遗症作文1100字 新校落成领导讲话 夏天写景作文600字 树杆为什么涂上白色的油漆作文400字 不动脑筋的故事 2016新年致辞:我们的世界春暖花开 明知是煎熬,却又躲不开。 考试交响曲作文1000字 唯美忧伤的日志:夜的凄凉,落幕谁的悲伤? 惹人喜爱的金鱼 高奕恺作文350字 思念一个人的滋味 你的爱,我刻骨铭心 My Love Has Gone 生命原本为爱而诞生——《悲惨世界》读后感作文550字 我只想静静的一个人不招惹爱情了 中国古代文学:《三国演义》简介 越用力,心会越疼 调戏爱情傻瓜 中国共产党XX市委第二批保持共产党员先进性工作总结 快递女生的慢递爱情 猫的生活作文600字 文明的骸骨

Copyright © 2016 phpStudy |