PHP Natives

PHP offers a selection of natives, which are not directly derived from a class, interface or enumeration name. They cover cases that are not object related, or not even data related.

  • null

  • bool

  • int

  • float

  • string

  • array

  • object

  • resource

  • never

  • void

  • self

  • parent

  • static

  • false

  • true

  • callable

  • iterable

  • stringable.

<?php

function foo(int $i, callable $c) : never {
    die();
}

?>

Documentation

Related : Null, Boolean, integer, Floating Point Numbers, String, Array, Object, resource, Never Type, Void, Self, parent, static, False, True, Callables, Iterable, Stringable