X

Create New Item

File Folder

X

Search Results

File "deep_copy.php"

Full path: /home/orbitecv/orbite-school.orbit.et/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php
File size: 396 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Edit   Back

<?php

namespace DeepCopy;

use function function_exists;

if (false === function_exists('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);
    }
}