PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   PHP Type Class   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Type Class
Get the names of each basic PHP data type
Author: By
Last change:
Date: 5 months ago
Size: 1,566 bytes
 

Contents

Class file image Download

PHP type names ??

Get all valid PHP type names with constants.

? Overview

Simple library containing the list of constants for the available PHP data types. Use those constant types in your project when you need to mention a data type, use those constants instead of hardcoding them.

?? Requirements

?? Installation

Install it easily with Composer

composer require ph-7/datatype

? Example

require_once __DIR__ . '/vendor/autoload.php';

use PH7\Datatype\Type;

$id = settype($_GET['id'], Type::STRING);

$name = settype($inputName, Type::STRING);

? Who cooked it?

Pierre-Henry Soria

[![@phenrysay][twitter-image]](https://twitter.com/phenrysay) [![pH-7][github-image]](https://github.com/pH-7)

Pierre-Henry Soria, a highly passionate, zen & pragmatic software engineer ?

?? License

PHP type names is generously distributed under the MIT.

<!-- GitHub's Markdown reference links --> [twitter-image]: https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white [github-image]: https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white

<!-- Generated by https://github.com/pH-7/cool-readme-generator -->