Return to the beginning of the results of a for loop
You can instantly access any position in an array by specifying the index. i.e. to get the first element of the $search_results array: $first_result = $search_results[0]; Note if you’re not used to working with arrays, they are “0” indexed in most languages, which means the first element’s index is 0, the second is 1, etc. … Read more