how to use and create loops in php