variant_cast

(PHP 5, PHP 7, PHP 8)

variant_castConvierte un variant en un nuevo objeto variant de tipo diferente

Descripción

variant_cast(variant $variant, int $type): variant

Esta función crea una copia de variant y realiza entonces una conversión para forzar la copia a tener el tipo dado por type.

Esta función es en realidad la función VariantChangeType() de la biblioteca COM; consulte MSDN para más información.

Parámetros

variant

El variant.

type

type debe ser un tipo entre las constantes VT_*.

Valores devueltos

Devuelve un variant del type proporcionado.

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top