• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • variant_set()

    (PHP 5, PHP 7)

    Assigns a new value for a variant object

    说明

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

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

    参数

    $variant

    The variant.

    $value

    返回值

    没有返回值。

    上篇:variant_set_type()

    下篇:variant_sub()