PHP Classes

File: src/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php

Recommend this page to a friend!
  Classes of walid laggoune   QPHP   src/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php   Download  
File: src/vendor/myclabs/deep-copy/src/DeepCopy/deep_copy.php
Role: Example script
Content type: text/plain
Description: Example script
Class: QPHP
Exchange messages with a queue server using Swoole
Author: By
Last change:
Date: 2 years ago
Size: 396 bytes
 

Contents

Class file image Download
<?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);
    }
}