PLZ: A handy PHP library for lazy programmers
  • Namespace
  • Class
  • Tree
  • Todo

Namespaces

  • amekusa
    • plz
  • PHP

Classes

  • alt
  • arr
  • constant
  • dom
  • fn
  • num
  • obj
  • op
  • path
  • str
  • sys
  • T
  • type
  • xml

Exceptions

  • ErrorException

Class fn

Function utilities

To get started, place the following line around top of your code.

use amekusa\plz\fn;
Abstract
Namespace: amekusa\plz
Located at fn.php

Methods summary

public static mixed
# call( callable $X, mixed $Args = null, mixed $Alt = null )

Calls a function:$X

Calls a function:$X

Additionally:

  • If $X is not callable, returns $Alt
  • If $X is not callable, And $Alt is callable, calls $Alt

Parameters

$X
A function to call
$Args
(optional) Arguments to pass to $X. Pass an array for multiple parameters
$Alt
(optional) A fail-safe value

Returns

mixed
A value $X returns or $Alt
PLZ: A handy PHP library for lazy programmers API documentation generated by ApiGen