variant_cmp Compares two variants php函数


variant_cmp

(PHP 5)

variant_cmpCompares two variants

说明

int variant_cmp ( mixed $left , mixed $right [, int $lcid [, int $flags ]] )

Compares left with right.

This function will only compare scalar values, not arrays or variant records.

参数

left

The left operand.

right

The right operand.

lcid

A valid Locale Identifier to use when comparing strings (this affects string collation).

flags

flags can be one or more of the following values OR'd together, and affects string comparisons:

Variant Comparision Flags
value meaning
NORM_IGNORECASE Compare case insensitively
NORM_IGNORENONSPACE Ignore nonspacing characters
NORM_IGNORESYMBOLS Ignore symbols
NORM_IGNOREWIDTH Ignore string width
NORM_IGNOREKANATYPE Ignore Kana type
NORM_IGNOREKASHIDA Ignore Arabic kashida characters

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.

返回值

Returns one of the following:

Variant Comparision Results
value meaning
VARCMP_LT left is less than right
VARCMP_EQ left is equal to right
VARCMP_GT left is greater than right
VARCMP_NULL Either left, right or both are NULL



相关阅读:
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
variant_neg Performs logical negation on a variant
variant_not Performs bitwise not negation on a variant
variant_or Performs a logical disjunction on 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 交通频道 作文范文 支持工会工作的好领导事迹材料_事迹材料 对xxx同志先进性教育活动专题民主评议意见反馈 真爱拥有,放逐曾经 鸭子的来历作文250字 超级小土豆作文600字 联谊会成立大会上的讲话 东坡引(九日) 入党志愿书范文(3) 花评作文900字 郭德纲为何如此大肆庆幸一个人的死去? 示范性高职院校创建工作培训心得体会 穿越之回到大唐做明星~(10)作文3000字 【乡土风情】永远的槐花香 冻死的候鸟 伊本才女散文 千年秦淮水悠悠 一 关于读书800字 张悦然经典语录大全 2015联合正风肃纪自查自纠报告 经典散文:生命是一场花开 爱心的意义作文1300字 2014公司招商会议主持词 感恩节800字 满江红(避暑) 小学五年级作文1500字:妈妈,我想送您康乃馨(转载) 2015贯彻落实区政法工作务虚会精神的情况汇报 关于上学的好词好句好段摘抄 蓝天白云作文100字 珠围翠绕反义词_珠围翠绕近义词 材料专业自荐信 男孩的爱情与众不同 2015初中教师工作总结 两篇 爱情甜蜜的句子大全 和妈妈玩游戏棒500字 奶奶的牵挂 高考满分作文:1500字 背负的爱 那枚一元硬币 怎么样简化流程? 杰克·韦尔奇自传txt免费下载 学生代表发言稿 科技馆的魔术表演作文 送给尤美的千纸鹤 让正能量伴我前行 儿童节促销广告词 墨下纸笺.莲语的呢喃to香宝生日快乐 可爱的小蚂蚁作文350字 骄傲使人落后,虚心使人进步——读《伊索寓言》有感 生命脆弱 初中初三作文500字:我家有只小兔子 电力公司员工安全管理心得体会 辽宁锦州笔架山导游词

Copyright © 2016 phpStudy |