var_export

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Outputs or returns a parsable string representation of a variable
<?php var_export(mixed $value, bool $return = false): ?string
<?php     protected function setIds($ids)

    {

        $contents = '<?php return '.var_export($ids, true).';';



        File::put($this->storagePath(), $contents);

    }
<?php         } elseif (is_array($value)) {

            return ! empty($value) ? 'true' : 'false';

        } elseif (is_object($value) and is_callable([$value, '__toString'])) {

            return var_export((string) $value, true);

        } elseif (is_object($value)) {

            return 'true';

        } else {
<?php         } elseif (is_object($value)) {

            return 'true';

        } else {

            return var_export($value, true);

        }

    }