1.2.933. PHP Arrays Index

List of indexes used when manipulating PHP arrays in the code. These indices usually carry semantic meanings, and should always be readable.

<?php

// HTTP_HOST is a PHP array index.
$ip = 'http'.$_SERVER['HTTP_HOST'].'/'.$row['path'];

//'path' is not a PHP index

?>

1.2.933.1. Specs

Short name

Arrays/Phparrayindex

Rulesets

All, Appinfo, CE

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

High

Features

array, index-array

Available in

Entreprise Edition, Community Edition, Exakat Cloud