Supported Versions: PHP 4 >= 4.0.5, PHP 5, PHP 7, PHP 8
Finds whether a variable is a scalar
<?php is_scalar(mixed $value): bool
<?php         $values = [];

        foreach ($args as $k => $v) {

            $values[$k] = !is_scalar($v) && !$v instanceof Stub ? new CutStub($v) : $v;

        }

        if (null === $params) {

            parent::__construct($values, false);
<?php         }



        if ('const' === $style && isset($attr['value'])) {

            $style .= sprintf(' title="%s"', esc(is_scalar($attr['value']) ? $attr['value'] : json_encode($attr['value'])));

        } elseif ('public' === $style) {

            $style .= sprintf(' title="%s"', empty($attr['dynamic']) ? 'Public property' : 'Runtime added dynamic property');

        } elseif ('str' === $style && 1 < $attr['length']) {