Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Userland

A userland feature, or definition, is a piece of code defined with PHP code, by one of the PHP developers. userland features are opposed to native features, which are available within PHP itself.

Functions, classes, enums, traits, constants, etc. may be userland. Loaded components with composer from packagist are also userland structures.

The main difference between userland and native features is tenuous. Though, some very specific feature may be reserved to native features. For example, magic methods are case-insensitive and magic, while userland constant cannot be case-insensitive. This is never critical.

There are some specific guidelines for userland naming.

<?php

    // trumpet is a userland function
    function trumpet() {}

?>

Documentation

See Also