PHP.nl

variant_set

variant_set

Assigns a new value for a variant object

void **variant_set** variant $variant mixed $value

Converts to a variant and assigns it to the object; no new variant object is created, and the old value of is freed/released. value``variant``variant

variantThe variant.

value

return.void