variant_int

(PHP 5, PHP 7)

variant_intReturns the integer portion of a variant

说锟斤拷

variant_int ( mixed $variant ) : mixed

Gets the integer portion of a variant.

锟斤拷锟斤拷

variant

The variant.

Note:

锟斤拷锟斤拷锟斤拷锟叫憋拷锟斤拷锟斤拷锟姐函锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥诧拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 锟斤拷锟矫碉拷锟斤拷锟酵o拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟酵伙拷锟斤拷 NULL锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷一锟斤拷 COM锟斤拷VARIANT 锟斤拷锟斤拷 DOTNET 锟斤拷锟绞碉拷锟斤拷锟絇HP 锟斤拷锟斤拷锟斤拷锟酵斤拷锟斤拷使锟矫和癸拷锟斤拷VARIANT锟斤拷锟斤拷同锟侥癸拷锟斤拷转锟斤拷锟缴憋拷锟斤拷锟斤拷COM 锟斤拷 DOTNET 锟斤拷锟斤拷锟街碉拷锟斤拷锟饺★拷锟侥拷锟斤拷锟斤拷圆锟斤拷锟斤拷锟斤拷杀锟斤拷锟街凳癸拷谩锟�

锟斤拷锟斤拷锟斤拷锟姐函锟斤拷锟斤拷同锟斤拷锟斤拷锟斤拷锟斤拷 COM 锟斤拷锟叫碉拷锟斤拷锟斤拷锟斤拷泄卮锟斤拷嗪拷锟斤拷母锟斤拷锟斤拷锟较拷渭锟� MSDN 锟解。PHP 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 锟叫碉拷 variant_add() 锟斤拷应锟斤拷 MSDN 锟侥碉拷锟叫碉拷 VarAdd()锟斤拷

锟斤拷锟斤拷值

If variant is negative, then the first negative integer greater than or equal to the variant is returned, otherwise returns the integer portion of the value of variant.

锟轿硷拷

  • variant_fix() - Returns the integer portion of a variant
  • variant_round() - Rounds a variant to the specified number of decimal places
  • floor() - 锟斤拷去锟斤拷取锟斤拷
  • ceil() - 锟斤拷一锟斤拷取锟斤拷
  • round() - 锟皆革拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷