Home  • Courses • Software Engineering
Array: It's often useful to aggregate a series of similar items together, arranging and referencing them in some specific way. These data structures, known as arrays, are formally defined as an indexed collection of data values. Each member of the array index (also known as the key) references a corresponding value. example <?php $color=array("Red","Green","Blue","Black","Yellow"); //alternate method $color[0]="Red"; $color[1]="Green"; $color[2]="Blue"; $color[3]="Black"; $color[4]="Yellow"; ?>

Comments 1


indexing,key
Copyright © 2024. Powered by Intellect Software Ltd