(PHP 5, PHP 7)
variant_sub — Subtracts the value of the right variant from the left variant value
left
The left operand.
right
The right operand.
Note:
锟斤拷锟斤拷锟斤拷锟叫憋拷锟斤拷锟斤拷锟姐函锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥诧拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 锟斤拷锟矫碉拷锟斤拷锟酵o拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟酵伙拷锟斤拷
NULL
锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷一锟斤拷 COM锟斤拷VARIANT 锟斤拷锟斤拷 DOTNET 锟斤拷锟绞碉拷锟斤拷锟絇HP 锟斤拷锟斤拷锟斤拷锟酵斤拷锟斤拷使锟矫和癸拷锟斤拷VARIANT锟斤拷锟斤拷同锟侥癸拷锟斤拷转锟斤拷锟缴憋拷锟斤拷锟斤拷COM 锟斤拷 DOTNET 锟斤拷锟斤拷锟街碉拷锟斤拷锟饺★拷锟侥拷锟斤拷锟斤拷圆锟斤拷锟斤拷锟斤拷杀锟斤拷锟街凳癸拷谩锟�锟斤拷锟斤拷锟斤拷锟姐函锟斤拷锟斤拷同锟斤拷锟斤拷锟斤拷锟斤拷 COM 锟斤拷锟叫碉拷锟斤拷锟斤拷锟斤拷泄卮锟斤拷嗪拷锟斤拷母锟斤拷锟斤拷锟较拷渭锟� MSDN 锟解。PHP 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 锟叫碉拷 variant_add() 锟斤拷应锟斤拷 MSDN 锟侥碉拷锟叫碉拷 VarAdd()锟斤拷
If | Then |
---|---|
Both expressions are of the string type | Subtraction |
One expression is a string type and the other a character | Subtraction |
One expression is numeric and the other is a string | Subtraction. |
Both expressions are numeric | Subtraction |
Either expression is NULL | NULL is returned |
Both expressions are empty | Empty string is returned |