variant_cast Convert a variant into a new variant object of another type php函数


variant_cast

(PHP 5)

variant_castConvert a variant into a new variant object of another type

说明

variant variant_cast ( variant $variant , int $type )

This function makes a copy of variant and then performs a variant cast operation to force the copy to have the type given by type.

This function wraps VariantChangeType() in the COM library; consult MSDN for more information.

参数

variant

The variant.

type

type should be one of the VT_XXX constants.

返回值

Returns a VT_DATE variant.

参见



相关阅读:
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
variant_neg Performs logical negation on a variant
快速导航

Copyright © 2016 phpStudy |