Functions in PHP: Part I

In this lesson, Codecademy introduced a number of functions that can be utilized to manipulate code including determining string length, converting strings to upper- and lower-case, finding the position of an occurence of a substring within a string, rounding, random number selection from a range, adding items to arrays, and sorting arrays. The following code is a demonstration of several of these functions. Several people are added to the array with the array_push function. The array is then sorted, and a name is selected at random as the "winner". The name is then printed in all uppercase letters - in this case, KELLY.