PHP Classes
elePHPant
Icontem

File: src/helpers/helpers.php

Recommend this page to a friend!
  Classes of Mohamed Samir  >  JLDB PHP JSON Lite DB  >  src/helpers/helpers.php  >  Download  
File: src/helpers/helpers.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: JLDB PHP JSON Lite DB
Manipulate database records stored as JSON files
Author: By
Last change:
Date: 11 days ago
Size: 263 bytes
 

 

Contents

Class file image Download
<?php

if (!function_exists('toObject')) {

   
/**
     * Convert array to object.
     *
     * @param array $array
     *
     * @return object
     */
   
function toObject(array $array)
    {
        return (object)
json_decode(json_encode($array));
    }
}