1.2.547. Identity

This method, function or closure <https://www.php.net/`closure>`_ returns one of its argument, without modification. This is the identity function, which might not be called at all, as it does nothing but return the same incoming argument. It might also be ready for future use.

<?php

function foo($a) {
    return $a;
}

?>

1.2.547.1. Connex PHP features

1.2.547.1.1. Specs

Short name

Functions/Identity

Rulesets

All, Changed Behavior

Exakat since

2.4.2

PHP Version

All

Severity

Time To Fix

Precision

High

Available in

Entreprise Edition, Exakat Cloud