What do arrays allow us to do?
Most important part of the arrays, is to define and determine the scope of values in a collection of data. This gives us control over the variable type, and other properties associated with the said data. On top of these are the benefits of performance and organization of the defined and expected values. It can contain string, number, arrays and objects.
Example: An Enterprise Payroll System can contain Hundreds or thousands of workers with a few hundred relevant data associated with one worker. Namely Pay Information, Daily Attendance, Leaves, Holidays, Allowances, Bonuses, Deduction which happen to be a daily reference… and those data plays a part in the processing of the payslips. Collecting the information individually is a stress in the server and will eventually cause an execution timeout. Gathering all the information in one query to an array will significantly solves a lot of issues in fact most of the hardware issues.
What index should you use in order to access the first element in an array?
0