weew/helpers-object

Collection of helper functions for objects.

v1.1.1 2016-07-21 11:18 UTC

This package is not auto-updated.

Last update: 2024-11-05 22:15:56 UTC


README

Build Status Test Coverage Version Licence

Table of contents

Installation

composer require weew/helpers-object

Introduction

This tiny library provides various useful helper functions to deal with objects.

Functions

sclone

Safely clones a value using the clone function if it is an object, simply returns the value otherwise.

mixed sclone(mixed $value)