PHP Data Structures (1) arrays $teacher[0] = Prakash ;
{"Image DocumentName": "PHP Data Structures (1) arrays  teacher[0] = Prakash ;", "Image ImageDescription": "- arrays collect values into lists. - individual items (elements) are accessed using an index which can be an integer or a string. - you can build arbitrarily complex data structures using arrays within arrays, that is, a value within an array can hold another array (multidimensional array) single dimension arrays. - use square brackets [ ] to refer to an element. - arrays are treated like normal variables \u2013 you can create it at the point of use without having to declare anything first. example: referencing array elements. <?php.  teacher[0] = Prakash ;  teacher[1] = Paul ;  teacher[2] = Dan ;  teacher[3] = Chris ; echo (  teacher[3] teaches DSA).<br/> ); ?> Output? Note: if you leave out the. index number, php will. start at 0 and use consecutive. integers thereafter.", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}