Skip to content

DeSmart/support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Add desmart/support to composer.json:

{
  "require": {
    "desmart/support": "1.0.*"
  }
}

Helpers

bool()

Converts string to boolean values using filter_var() with FILTER_VALIDATE_BOOLEAN.
When filter_var() is unable to convert it to boolean exception will be thrown.

Example usage:

<?php
bool('1'); // true
bool('yes'); // true
bool('no'); // false
?>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages