loop index in php code example Example: php loop statement do { code to be executed } while (condition)