PHP Classes

File: vendor/opis/closure/functions.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra  >  PHP Inventory Management System with Scanner  >  vendor/opis/closure/functions.php  >  Download  
File: vendor/opis/closure/functions.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Inventory Management System with Scanner
Manage inventory stock using scanner application
Author: By
Last change:
Date: 6 months ago
Size: 809 bytes
 

 

Contents

Class file image Download
<?php
/* ===========================================================================
 * Copyright (c) 2018-2019 Zindex Software
 *
 * Licensed under the MIT License
 * =========================================================================== */

namespace Opis\Closure;

/**
 * Serialize
 *
 * @param $data
 * @return string
 */
function serialize($data)
{
   
SerializableClosure::enterContext();
   
SerializableClosure::wrapClosures($data);
   
$data = \serialize($data);
   
SerializableClosure::exitContext();
    return
$data;
}

/**
 * Unserialize
 *
 * @param $data
 * @return mixed
 */
function unserialize($data)
{
   
SerializableClosure::enterContext();
   
$data = \unserialize($data);
   
SerializableClosure::unwrapClosures($data);
   
SerializableClosure::exitContext();
    return
$data;
}


For more information send a message to info at phpclasses dot org.