name : deep_copy.php
<?php

namespace RegularLabs\Scoped\DeepCopy;

use function function_exists;
if (\false === function_exists('RegularLabs\Scoped\DeepCopy\deep_copy')) {
    /**
     * Deep copies the given value.
     *
     * @param mixed $value
     * @param bool  $useCloneMethod
     *
     * @return mixed
     */
    function deep_copy($value, $useCloneMethod = \false)
    {
        return (new DeepCopy($useCloneMethod))->copy($value);
    }
}

© 2025 Cubjrnet7