Assigns a new value for a variant object

# variant_set

(PHP 5, PHP 7)

variant_set — Assigns a new value for a variant object

### Descrierea

variant_set ( variant `$variant` , mixed `$value` ) : void

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

### Parametri

`variant`

  The variant.

`value`

### Valorile întoarse

Nu este întoarsă nici o valoare.