The last curly bracket is to close the procedure, the second to last one is to close the for loop. When I try deleting the last } I this error: // Error: for ($i = $tempArrSize, $i > 0, $i--){ // // Error: Syntax error // Any ideas?