Added PHP function and while loop documentation