Legend of the Green Dragon

functions.php

Table of Contents

e_rand()  : int
Alias of mt_rand with some improvements.
r_rand()  : int|float
Same as e_rand but $min and $max are multiplied by 1000.
is_email()  : bool
Check if given email is valid.
arraytourl()  : string
Turns an array into an URL argument string.
urltoarray()  : array<string|int, mixed>
Takes an array and returns its arguments in an array.
createstring()  : string
Turns the given parameter into a string.
myDefine()  : mixed
list_files()  : mixed
_curl()  : mixed
_sock()  : mixed
pullurl()  : mixed
safeescape()  : mixed
nltoappon()  : mixed

Functions

e_rand()

Alias of mt_rand with some improvements.

e_rand([int|float $min = null ][, int|float $max = null ]) : int
Parameters
$min : int|float = null
$max : int|float = null

r_rand()

Same as e_rand but $min and $max are multiplied by 1000.

r_rand([int|float $min = null ][, int|float $max = null ]) : int|float
Parameters
$min : int|float = null
$max : int|float = null

is_email()

Check if given email is valid.

is_email(string $email) : bool
Parameters
$email : string

arraytourl()

Turns an array into an URL argument string.

arraytourl(array<string|int, mixed> $array) : string

Takes an array and encodes it in key=val&key=val form. Does not add starting ?

Parameters
$array : array<string|int, mixed>

The array to turn into an URL

urltoarray()

Takes an array and returns its arguments in an array.

urltoarray(string $url) : array<string|int, mixed>
Parameters
$url : string

The URL

createstring()

Turns the given parameter into a string.

createstring(mixed $array) : string

If the given parameter is an array or object, it is serialized, and the serialized string is return.

Otherwise, the parameter is cast as a string and returned.

Parameters
$array : mixed

myDefine()

myDefine(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed

list_files()

list_files(mixed $ruta, mixed $sort) : mixed
Parameters
$ruta : mixed
$sort : mixed

_curl()

_curl(mixed $url) : mixed
Parameters
$url : mixed

_sock()

_sock(mixed $url) : mixed
Parameters
$url : mixed

pullurl()

pullurl(mixed $url) : mixed
Parameters
$url : mixed

safeescape()

safeescape(mixed $input) : mixed
Parameters
$input : mixed

nltoappon()

nltoappon(mixed $in) : mixed
Parameters
$in : mixed

Search results