1.2.1221. Type Array Index

All literal index used in the code.

<?php

// index is an index. it is read
$array['index'] = 1;

// another_index and second_level are read
$array[] = $array['another_index']['second_level'];

// variables index are not reported
$array[$variable] = 1;

?>

1.2.1221.1. Specs

Short name

Type/ArrayIndex

Rulesets

All, Appinfo, CE, Changed Behavior, Inventory

Exakat since

1.0.4

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

array, index

Available in

Entreprise Edition, Community Edition, Exakat Cloud