Do while loop : Do While : Language Basics PHP Source Code
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
PHP Source Code
»
Language Basics
»
Do While
»
Do while loop
<?php
$a =
1
;
do
{
echo $a .
"<br>"
;
$a++;
}
while
(
$a >
10
)
;
?>
HTML code for linking to this page:
Related in same category :
Break in Nested Loops
The do...while Statement
PHP Function Reference -> Users Code Examples / Notes - > Do While:
What can PHP do?
What do I need?
Installation on Windows systems
Windows Installer (PHP 5.2 and later)
Windows Installer (PHP 5.1.0 and earlier)
Windows NT/200x/XP and IIS 4 or newer
Windows and PWS 4
Windows and PWS/IIS 3
Apache 1.3.x on Microsoft Windows
Apache 2.0.x on Microsoft Windows
Sambar Server on Microsoft Windows
Xitami on Microsoft Windows
Installation of extensions on Windows
Downloading PECL extensions
PECL for Windows users
Changing PHP configuration via the Windows registry
Double quoted
Heredoc
Array do's and don'ts
Pseudo-types and variables used in this documentation
Dots in incoming variable names
while
do-while
What References Do
Case 3: setting doc_root or user_dir
dotnet_load
ccvs_done
cpdf_global_set_document_limits
COM and .Net (Windows)
DOTNET
dbplus_undo
dbplus_undoprepare
DOM Functions
DOMAttr->__construct()
DOMAttr->isId()
DOMCharacterData->appendData()
DOMCharacterData->deleteData()
DOMCharacterData->insertData()
DOMCharacterData->replaceData()
DOMCharacterData->substringData()
DOMComment->__construct()
DOMDocument->__construct()
DOMDocument->createAttribute()
DOMDocument->createAttributeNS()
DOMDocument->createCDATASection()
DOMDocument->createComment()
DOMDocument->createDocumentFragment()
DOMDocument->createElement()
DOMDocument->createElementNS()
DOMDocument->createEntityReference()
DOMDocument->createProcessingInstruction()
DOMDocument->createTextNode()
DOMDocument->getElementById()
DOMDocument->getElementsByTagName()
DOMDocument->getElementsByTagNameNS()
DOMDocument->importNode()
DOMDocument->load()
DOMDocument->loadHTML()
DOMDocument->loadHTMLFile()
DOMDocument->loadXML()
DOMDocument->normalizeDocument()
DOMDocument->registerNodeClass()
DOMDocument->relaxNGValidate()
DOMDocument->relaxNGValidateSource()
DOMDocument->save()
DOMDocument->saveHTML()
DOMDocument->saveHTMLFile()
DOMDocument->saveXML()
DOMDocument->schemaValidate()
DOMDocument->schemaValidateSource()
DOMDocument->validate()
DOMDocument->xinclude()
DOMDocumentFragment->appendXML()
DOMElement->__construct()
DOMElement->getAttribute()
DOMElement->getAttributeNode()
DOMElement->getAttributeNodeNS()
DOMElement->getAttributeNS()
DOMElement->getElementsByTagName()
DOMElement->getElementsByTagNameNS()
DOMElement->hasAttribute()
DOMElement->hasAttributeNS()
DOMElement->removeAttribute()
DOMElement->removeAttributeNode()
DOMElement->removeAttributeNS()
DOMElement->setAttribute()
DOMElement->setAttributeNode()
DOMElement->setAttributeNodeNS()
DOMElement->setAttributeNS()
DOMElement->setIdAttribute()
DOMElement->setIdAttributeNode()
DOMElement->setIdAttributeNS()
DOMEntityReference->__construct()
DOMImplementation->__construct()
DOMImplementation->createDocument()
DOMImplementation->createDocumentType()
DOMImplementation->hasFeature()
DOMNamedNodeMap->getNamedItem()
DOMNamedNodeMap->getNamedItemNS()
DOMNamedNodeMap->item()
DOMNode->appendChild()
DOMNode->cloneNode()
DOMNode->hasAttributes()
DOMNode->hasChildNodes()
DOMNode->insertBefore()
DOMNode->isDefaultNamespace()
DOMNode->isSameNode()
DOMNode->isSupported()
DOMNode->lookupNamespaceURI()
DOMNode->lookupPrefix()
DOMNode->normalize()
DOMNode->removeChild()
DOMNode->replaceChild()
DOMNodelist->item()
DOMProcessingInstruction->__construct()
DOMText->__construct()
DOMText->isWhitespaceInElementContent()
DOMText->splitText()
DOMXPath->__construct()
DOMXPath->evaluate()
DOMXPath->query()
DOMXPath->registerNamespace()
dom_import_simplexml
DOM XML Functions
DomAttribute->name
DomAttribute->set_value
DomAttribute->specified
DomAttribute->value
DomDocument->add_root
DomDocument->create_attribute
DomDocument->create_cdata_section
DomDocument->create_comment
DomDocument->create_element_ns
DomDocument->create_element
DomDocument->create_entity_reference
DomDocument->create_processing_instruction
DomDocument->create_text_node
DomDocument->doctype
DomDocument->document_element
DomDocument->dump_file
DomDocument->dump_mem
DomDocument->get_element_by_id
DomDocument->get_elements_by_tagname
DomDocument->html_dump_mem
DomDocument->xinclude
DomDocumentType->entities()
DomDocumentType->internal_subset()
DomDocumentType->name()
DomDocumentType->notations()
DomDocumentType->public_id()
DomDocumentType->system_id()
DomElement->get_attribute_node()
DomElement->get_attribute()
DomElement->get_elements_by_tagname()
DomElement->has_attribute()
DomElement->remove_attribute()
DomElement->set_attribute_node()
DomElement->set_attribute()
DomElement->tagname()
DomNode->add_namespace
DomNode->append_child
DomNode->append_sibling
DomNode->attributes
DomNode->child_nodes
DomNode->clone_node
DomNode->dump_node
DomNode->first_child
DomNode->get_content
DomNode->has_attributes
DomNode->has_child_nodes
DomNode->insert_before
DomNode->is_blank_node
DomNode->last_child
DomNode->next_sibling
DomNode->node_name
DomNode->node_type
DomNode->node_value
DomNode->owner_document
DomNode->parent_node
DomNode->prefix
DomNode->previous_sibling
DomNode->remove_child
DomNode->replace_child
DomNode->replace_node
DomNode->set_content
DomNode->set_name
DomNode->set_namespace
DomNode->unlink_node
DomProcessingInstruction->data
DomProcessingInstruction->target
DomXsltStylesheet->process()
DomXsltStylesheet->result_dump_file()
DomXsltStylesheet->result_dump_mem()
domxml_new_doc
domxml_open_file
domxml_open_mem
domxml_version
domxml_xmltree
domxml_xslt_stylesheet_doc
domxml_xslt_stylesheet_file
domxml_xslt_stylesheet
domxml_xslt_version
fdf_add_doc_javascript
Firebird/Interbase Functions (PDO_FIREBIRD)
PDO_FIREBIRD DSN
register_shutdown_function
bind_textdomain_codeset
bindtextdomain
textdomain
gmp_random
HaruDoc
HaruDoc::addPage
HaruDoc::addPageLabel
HaruDoc::__construct
HaruDoc::createOutline
HaruDoc::getCurrentEncoder
HaruDoc::getCurrentPage
HaruDoc::getEncoder
HaruDoc::getFont
HaruDoc::getInfoAttr
HaruDoc::getPageLayout
HaruDoc::getPageMode
HaruDoc::getStreamSize
HaruDoc::insertPage
HaruDoc::loadJPEG
HaruDoc::loadPNG
HaruDoc::loadRaw
HaruDoc::loadTTC
HaruDoc::loadTTF
HaruDoc::loadType1
HaruDoc::output
HaruDoc::readFromStream
HaruDoc::resetError
HaruDoc::resetStream
HaruDoc::save
HaruDoc::saveToStream
HaruDoc::setCompressionMode
HaruDoc::setCurrentEncoder
HaruDoc::setEncryptionMode
HaruDoc::setInfoAttr
HaruDoc::setInfoDateAttr
HaruDoc::setOpenAction
HaruDoc::setPageLayout
HaruDoc::setPageMode
HaruDoc::setPagesConfiguration
HaruDoc::setPassword
HaruDoc::setPermission
HaruDoc::useCNSEncodings
HaruDoc::useCNSFonts
HaruDoc::useCNTEncodings
HaruDoc::useCNTFonts
HaruDoc::useJPEncodings
HaruDoc::useJPFonts
HaruDoc::useKREncodings
HaruDoc::useKRFonts
hw_DocByAnchor
hw_DocByAnchorObj
hw_Document_Attributes
hw_Document_BodyTag
hw_Document_Content
hw_Document_SetContent
hw_Document_Size
hw_Free_Document
hw_GetChildDocColl
hw_GetChildDocCollObj
hw_InsDoc
hw_InsertDocument
hw_New_Document
hw_Output_Document
hw_PipeDocument
hw_api->insertdocument
IBM Functions (PDO_IBM)
PDO_IBM DSN
imagegrabwindow
Imagick::newPseudoImage
Imagick::randomThresholdImage
Imagick::shadowImage
ifx_do
Informix Functions (PDO_INFORMIX)
PDO_INFORMIX DSN
SWFButton->setDown()
udm_get_doc_count
Microsoft SQL Server and Sybase Functions (PDO_DBLIB)
PDO_DBLIB DSN
MySQL Functions (PDO_MYSQL)
PDO_MYSQL DSN
ncurses_doupdate
ncurses_panel_window
ncurses_standout
ncurses_wstandout
newt_centered_window
newt_grid_basic_window
newt_grid_simple_window
newt_grid_wrapped_window_at
newt_grid_wrapped_window
newt_open_window
newt_pop_window
odbc_do
ODBC and DB2 Functions (PDO_ODBC)
PDO_ODBC DSN
ora_do
Oracle Functions (PDO_OCI)
PDO_OCI DSN
Paradox File Access
PDF_begin_document
PDF_end_document
PDO Functions
PDO->beginTransaction()
PDO->commit()
PDO->__construct()
PDO->errorCode()
PDO->errorInfo()
PDO->exec()
PDO->getAttribute()
PDO->getAvailableDrivers()
PDO->lastInsertId()
PDO->prepare()
PDO->query()
PDO->quote()
PDO->rollBack()
PDO->setAttribute()
PDOStatement->bindColumn()
PDOStatement->bindParam()
PDOStatement->bindValue()
PDOStatement->closeCursor()
PDOStatement->columnCount()
PDOStatement->errorCode()
PDOStatement->errorInfo()
PDOStatement->execute()
PDOStatement->fetch()
PDOStatement->fetchAll()
PDOStatement->fetchColumn()
PDOStatement->fetchObject()
PDOStatement->getAttribute()
PDOStatement->getColumnMeta()
PDOStatement->nextRowset()
PDOStatement->rowCount()
PDOStatement->setAttribute()
PDOStatement->setFetchMode()
PostgreSQL Functions (PDO_PGSQL)
PDO_PGSQL DSN
PDO::pgsqlLOBCreate
PDO::pgsqlLOBOpen
PDO::pgsqlLOBUnlink
printer_end_doc
printer_start_doc
PostScript document creation
qtdom Functions
qdom_error
qdom_tree
radius_get_vendor_attr
radius_put_vendor_addr
radius_put_vendor_attr
radius_put_vendor_int
radius_put_vendor_string
runkit_class_adopt
SDO Functions
SDO_DAS_ChangeSummary::beginLogging
SDO_DAS_ChangeSummary::endLogging
SDO_DAS_ChangeSummary::getChangeType
SDO_DAS_ChangeSummary::getChangedDataObjects
SDO_DAS_ChangeSummary::getOldContainer
SDO_DAS_ChangeSummary::getOldValues
SDO_DAS_ChangeSummary::isLogging
SDO_DAS_DataFactory::addPropertyToType
SDO_DAS_DataFactory::addType
SDO_DAS_DataFactory::getDataFactory
SDO_DAS_DataObject::getChangeSummary
SDO_DAS_Setting::getListIndex
SDO_DAS_Setting::getPropertyIndex
SDO_DAS_Setting::getPropertyName
SDO_DAS_Setting::getValue
SDO_DAS_Setting::isSet
SDO_DataFactory::create
SDO_DataObject::clear
SDO_DataObject::createDataObject
SDO_DataObject::getContainer
SDO_DataObject::getSequence
SDO_DataObject::getTypeName
SDO_DataObject::getTypeNamespaceURI
SDO_Exception::getCause
SDO_List::insert
SDO_Model_Property::getContainingType
SDO_Model_Property::getDefault
SDO_Model_Property::getName
SDO_Model_Property::getType
SDO_Model_Property::isContainment
SDO_Model_Property::isMany
SDO_Model_ReflectionDataObject::__construct
SDO_Model_ReflectionDataObject::export
SDO_Model_ReflectionDataObject::getContainmentProperty
SDO_Model_ReflectionDataObject::getInstanceProperties
SDO_Model_ReflectionDataObject::getType
SDO_Model_Type::getBaseType
SDO_Model_Type::getName
SDO_Model_Type::getNamespaceURI
SDO_Model_Type::getProperties
SDO_Model_Type::getProperty
SDO_Model_Type::isAbstractType
SDO_Model_Type::isDataType
SDO_Model_Type::isInstance
SDO_Model_Type::isOpenType
SDO_Model_Type::isSequencedType
SDO_Sequence::getProperty
SDO_Sequence::insert
SDO_Sequence::move
SDO XML Data Access Service Functions
SDO_DAS_XML_Document::getRootDataObject
SDO_DAS_XML_Document::getRootElementName
SDO_DAS_XML_Document::getRootElementURI
SDO_DAS_XML_Document::setEncoding
SDO_DAS_XML_Document::setXMLDeclaration
SDO_DAS_XML_Document::setXMLVersion
SDO_DAS_XML::addTypes
SDO_DAS_XML::create
SDO_DAS_XML::createDataObject
SDO_DAS_XML::createDocument
SDO_DAS_XML::loadFile
SDO_DAS_XML::loadString
SDO_DAS_XML::saveFile
SDO_DAS_XML::saveString
SDO Relational Data Access Service Functions
SDO_DAS_Relational::applyChanges
SDO_DAS_Relational::__construct
SDO_DAS_Relational::createRootDataObject
SDO_DAS_Relational::executePreparedQuery
SDO_DAS_Relational::executeQuery
SimpleXMLElement->getDocNamespaces()
simplexml_import_dom
SoapClient->__doRequest()
socket_shutdown
DirectoryIterator::isDot
SQLite Functions (PDO_SQLITE)
PDO_SQLITE DSN
PDO->sqliteCreateAggregate()
PDO->sqliteCreateFunction()
stream_socket_shutdown
swf_enddoaction
swf_startdoaction
tidy_get_opt_doc
doubleval
is_double
vpopmail_add_alias_domain_ex
vpopmail_add_alias_domain
vpopmail_add_domain_ex
vpopmail_add_domain
vpopmail_alias_del_domain
vpopmail_del_domain_ex
vpopmail_del_domain
XMLWriter::endDocument
XMLWriter::startDocument
XSLTProcessor::transformToDoc
yp_get_default_domain
PDO overview
while syntax
Vendor Specific Database Extensions
Windows Only Extensions
Internet Domain: TCP
Unix Domain: Unix and UDG
PHP Source Code
Language Basics
»
Do While
Arithmetic Operators
Assign Operator
Binary Number
Bitwise Operators
Boolean
Break
Char
Comments
Constant
Continue
Data Type Convert
Data Type
Define Constant
Do While
Double
Equality Operators
Exit
For Each
For
Global
GLOBALS
Hexadecimal Number
If
Include
Integer
Logic Operators
Modulus
Octal Number
Operator Precedence
Php Tag
PNG
Polygon
Postfix Prefix Operators
Pre Defined Constant
Reference
Relational Operators
Shorthand Operators
Static
Switch
Trinary Operator
Variable Cast
Variable Scope
Variable Set Unset
Variable Type
While
Chart
Class
COM and .Net (Windows)
Components
Cookie Session
Data Structure
Databases
Design Patterns
Development
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
String
Web Services SOAP WSDL
XML