variant_sub

(PHP 5, PHP 7)

variant_subSubtracts the value of the right variant from the left variant value

说锟斤拷

variant_sub ( mixed $left , mixed $right ) : mixed

Subtracts right from left.

锟斤拷锟斤拷

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()锟斤拷

锟斤拷锟斤拷值

Variant Subtraction Rules
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

锟轿硷拷

  • variant_add() - "Adds" two variant values together and returns the result