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