PHP Classes

File: global/functions.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   Typed Arrays   global/functions.php   Download  
File: global/functions.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Typed Arrays
Implement arrays of values of only one type
Author: By
Last change:
Date: 4 months ago
Size: 881 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);

function
bool??(bool ...$args): bool??
{
    return new
bool??(...$args);
}


function
float??(float ...$args): float??
{
    return new
float??(...$args);
}

function
int??(int ...$args): int??
{
    return new
int??(...$args);
}

function
string??(string ...$args): string??
{
    return new
string??(...$args);
}

// Second level deep:

function bool????(bool?? ...$args): bool????
{
    return new
bool????(...$args);
}


function
float????(float?? ...$args): float????
{
    return new
float????(...$args);
}


function
int????(int?? ...$args): int????
{
    return new
int????(...$args);
}

function
string????(string?? ...$args): string????
{
    return new
string????(...$args);
}