In this example, ArraySize is used to count the numbers in the array
$arr.
In this example, ArraySize is used to count the numbers in the array
$arr.
When the script is run, $numberOfItems gets the value 3, i.e. the same result as in the previous example.
If a phone number for a specific call is found in $arrTele, the charge for the call should be added to the corresponding position in
$arrAmount.
If the phone number is not found, the new phone number should be added to $arrTele and the new charge to
$arrAmount. The
ArraySize function specifies the position where to add the new number and charge at the end of the arrays.