recent searches:
include functions ,
variable functions ,
post functions...
If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.
PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.
do-while loops are very similar to while loops, except the truth expression is checked at the end of each iteration instead of in the beginning. The main difference from regular while loops is that the first iteration of a do-while loop is guaranteed to run (the truth expression is only checked at the end of the iteration), whereas it's may not necessarily run with a regular while loop (the truth expression is checked at the beginning of each iteration, if it evaluates to FALSE right from the beginning, the loop execution would end immediately).
There is just one syntax for do-while loops:
The above loop would run one time exactly, since after the first iteration, when truth expression is checked, it evaluates to FALSE ($i is not bigger than 0) and the loop execution ends.
Advanced C users may be familiar with a different usage of the do-while loop, to allow stopping execution in the middle of code blocks, by encapsulating them with do-while (0), and using the break statement. The following code fragment demonstrates this:
<?php |
Don't worry if you don't understand this right away or at all. You can code scripts and even powerful scripts without using this 'feature'.
Another Useful functions:
zend.startup-and-shutdown | zend-macro.zend-module-shutdown-n | zend-macro.zend-module-shutdown-d | zend-macro.return-double | zend-api.zend-update-static-property-double | zend-api.zend-update-property-double | zend-api.zend-register-double-constant | zend-api.zend-ini-shutdown | zend-api.zend-ini-global-shutdown | zend-api.zend-ini-double | zend-api.zend-do-inheritance | zend-api.zend-do-inherit-interfaces | zend-api.zend-do-implement-interface | zend-api.zend-do-fcall | zend-api.zend-declare-property-double | zend-api.zend-declare-class-constant-double | zend-api.virtual-cwd-shutdown | zend-api.tsrm-shutdown | zend-api.shutdown-memory-manager | zend-api.register-main-double-constant | zend-api.register-double-constant | zend-api.do-bind-inherited-class | zend-api.do-bind-function | zend-api.do-bind-class | zend-api.add-property-double | zend-api.add-property-double-ex | zend-api.add-next-index-double | zend-api.add-index-double | zend-api.add-get-index-double | zend-api.add-assoc-double | zend-api.add-assoc-double-ex | security.cgi-bin.doc-root | ref.sdo | ref.sdo.das.rel | ref.sdo-das-xml | ref.qtdom | ref.pdo | ref.pdo-sqlite | ref.pdo-sqlite.connection | ref.pdo-pgsql | ref.pdo-pgsql.connection | ref.pdo-odbc | ref.pdo-odbc.connection | ref.pdo-oci | ref.pdo-oci.connection | ref.pdo-mysql | ref.pdo-mysql.connection | ref.pdo-informix | ref.pdo-informix.connection | ref.pdo-ibm | ref.pdo-ibm.connection | ref.pdo-firebird | ref.pdo-firebird.connection | ref.pdo-dblib | ref.pdo-dblib.connection | ref.paradox | ref.dotnet | ref.domxml | ref.dom | language.references.whatdo | language.pseudo-types | language.oop5.paamayim-nekudotayim | keyword.paamayim-nekudotayim | intro-whatcando | internals.pdo.testing | internals.pdo.prerequisites | internals.pdo.preparation | internals.pdo.pdo_stmt_t | internals.pdo.pdo-dbh-t | internals.pdo.packaging | internals.pdo.implementing | internals.pdo | internals.pdo.error-handling | internals.pdo.constants | internals.pdo.building | install.windows.xitami | install.windows.sun | install.windows.sambar | install.windows.omnihttpd | install.windows.manual | install.windows.installer | install.windows.iis | install.windows | install.windows.extensions | install.windows.building | install.windows.apache2 | install.windows.apache1 | install.windows.activescript | install.pecl.windows | install.pecl.downloads | haru.harudoc | function.yp-get-default-domain | function.xsl-xsltprocessor-transform-to-doc | function.xmlwriter-start-document | function.xmlwriter-end-document | function.vpopmail-del-domain | function.vpopmail-del-domain-ex | function.vpopmail-alias-del-domain | function.vpopmail-add-domain | function.vpopmail-add-domain-ex | function.vpopmail-add-alias-domain | function.vpopmail-add-alias-domain-ex | function.udm-get-doc-count | function.tidy-get-opt-doc | function.textdomain | function.swfbutton.setdown | function.swf-startdoaction | function.swf-enddoaction | function.stream-socket-shutdown | function.socket-shutdown | function.soap-soapclient-dorequest | function.simplexml-import-dom | function.simplexml-element-getdocnamespaces | function.sdo-sequence-move | function.sdo-sequence-insert | function.sdo-sequence-getproperty | function.sdo-model-type-issequencedtype | function.sdo-model-type-isopentype | function.sdo-model-type-isinstance | function.sdo-model-type-isdatatype | function.sdo-model-type-isabstracttype | function.sdo-model-type-getproperty | function.sdo-model-type-getproperties | function.sdo-model-type-getnamespaceuri | function.sdo-model-type-getname | function.sdo-model-type-getbasetype | function.sdo-model-reflectiondataobject-gettype | function.sdo-model-reflectiondataobject-getinstanceproperties | function.sdo-model-reflectiondataobject-getcontainmentproperty | function.sdo-model-reflectiondataobject-export | function.sdo-model-reflectiondataobject-construct | function.sdo-model-property-ismany | function.sdo-model-property-iscontainment | function.sdo-model-property-gettype | function.sdo-model-property-getname | function.sdo-model-property-getdefault | function.sdo-model-property-getcontainingtype | function.sdo-list-insert | function.sdo-exception-getcause | function.sdo-dataobject-gettypenamespaceuri | function.sdo-dataobject-gettypename | function.sdo-dataobject-getsequence | function.sdo-dataobject-getcontainer | function.sdo-dataobject-createdataobject | function.sdo-dataobject-clear | function.sdo-datafactory-create | function.sdo-das-xml-savestring | function.sdo-das-xml-savefile | function.sdo-das-xml-loadstring | function.sdo-das-xml-loadfile | function.sdo-das-xml-document-setxmlversion | function.sdo-das-xml-document-setxmldeclaration | function.sdo-das-xml-document-setencoding | function.sdo-das-xml-document-getrootelementuri | function.sdo-das-xml-document-getrootelementname | function.sdo-das-xml-document-getrootdataobject | function.sdo-das-xml-createdocument | function.sdo-das-xml-createdataobject | function.sdo-das-xml-create | function.sdo-das-xml-addtypes | function.sdo-das-setting-isset | function.sdo-das-setting-getvalue | function.sdo-das-setting-getpropertyname | function.sdo-das-setting-getpropertyindex | function.sdo-das-setting-getlistindex | function.sdo-das-relational-executequery | function.sdo-das-relational-executepreparedquery | function.sdo-das-relational-createrootdataobject | function.sdo-das-relational-construct | function.sdo-das-relational-applychanges | function.sdo-das-dataobject-getchangesummary | function.sdo-das-datafactory-getdatafactory | function.sdo-das-datafactory-addtype | function.sdo-das-datafactory-addpropertytotype | function.sdo-das-changesummary-islogging | function.sdo-das-changesummary-getoldvalues | function.sdo-das-changesummary-getoldcontainer | function.sdo-das-changesummary-getchangetype | function.sdo-das-changesummary-getchangeddataobjects | function.sdo-das-changesummary-endlogging | function.sdo-das-changesummary-beginlogging | function.runkit-class-adopt | function.register-shutdown-function | function.radius-put-vendor-string | function.radius-put-vendor-int | function.radius-put-vendor-attr | function.radius-put-vendor-addr | function.radius-get-vendor-attr | function.qdom-tree | function.qdom-error | function.printer-start-doc | function.printer-end-doc | function.pdostatement-setfetchmode | function.pdostatement-setattribute | function.pdostatement-rowcount | function.pdostatement-nextrowset | function.pdostatement-getcolumnmeta | function.pdostatement-getattribute | function.pdostatement-fetchobject | function.pdostatement-fetchcolumn | function.pdostatement-fetchall | function.pdostatement-fetch | function.pdostatement-execute | function.pdostatement-errorinfo | function.pdostatement-errorcode | function.pdostatement-columncount | function.pdostatement-closecursor | function.pdostatement-bindvalue | function.pdostatement-bindparam | function.pdostatement-bindcolumn | function.pdo-sqlitecreatefunction | function.pdo-sqlitecreateaggregate | function.pdo-setattribute | function.pdo-rollback | function.pdo-quote | function.pdo-query | function.pdo-prepare | function.pdo-pgsqllobunlink | function.pdo-pgsqllobopen | function.pdo-pgsqllobcreate | function.pdo-lastinsertid | function.pdo-getavailabledrivers | function.pdo-getattribute | function.pdo-exec | function.pdo-errorinfo | function.pdo-errorcode | function.pdo-construct | function.pdo-commit | function.pdo-begintransaction | function.pdf-end-document | function.pdf-begin-document | function.ora-do | function.odbc-do | function.newt-pop-window | function.newt-open-window | function.newt-grid-wrapped-window | function.newt-grid-wrapped-window-at | function.newt-grid-simple-window | function.newt-grid-basic-window | function.newt-centered-window | function.ncurses-wstandout | function.ncurses-standout | function.ncurses-panel-window | function.ncurses-doupdate | function.is-double | function.ifx-do | function.hwapi-insertdocument | function.hw-pipedocument | function.hw-output-document | function.hw-new-document | function.hw-insertdocument | function.hw-insdoc | function.hw-getchilddoccollobj | function.hw-getchilddoccoll | function.hw-free-document | function.hw-document-size | function.hw-document-setcontent | function.hw-document-content | function.hw-document-bodytag | function.hw-document-attributes | function.hw-docbyanchorobj | function.hw-docbyanchor | function.harudoc-usekrfonts | function.harudoc-usekrencodings | function.harudoc-usejpfonts | function.harudoc-usejpencodings | function.harudoc-usecntfonts | function.harudoc-usecntencodings | function.harudoc-usecnsfonts | function.harudoc-usecnsencodings | function.harudoc-setpermission | function.harudoc-setpassword | function.harudoc-setpagesconfiguration | function.harudoc-setpagemode | function.harudoc-setpagelayout | function.harudoc-setopenaction | function.harudoc-setinfodateattr | function.harudoc-setinfoattr | function.harudoc-setencryptionmode | function.harudoc-setcurrentencoder | function.harudoc-setcompressionmode | function.harudoc-savetostream | function.harudoc-save | function.harudoc-resetstream | function.harudoc-reseterror | function.harudoc-readfromstream | function.harudoc-output | function.harudoc-loadtype1 | function.harudoc-loadttf | function.harudoc-loadttc | function.harudoc-loadraw | function.harudoc-loadpng | function.harudoc-loadjpeg | function.harudoc-insertpage | function.harudoc-getstreamsize | function.harudoc-getpagemode | function.harudoc-getpagelayout | function.harudoc-getinfoattr | function.harudoc-getfont | function.harudoc-getencoder | function.harudoc-getcurrentpage | function.harudoc-getcurrentencoder | function.harudoc-createoutline | function.harudoc-construct | function.harudoc-addpagelabel | function.harudoc-addpage | function.gmp-random | function.fdf-add-doc-javascript | function.doubleval | function.dotnet-load | function.domxsltstylesheet-result-dump-mem | function.domxsltstylesheet-result-dump-file | function.domxsltstylesheet-process | function.domxml-xslt-version | function.domxml-xslt-stylesheet | function.domxml-xslt-stylesheet-file | function.domxml-xslt-stylesheet-doc | function.domxml-xmltree | function.domxml-version | function.domxml-open-mem | function.domxml-open-file | function.domxml-new-doc | function.domprocessinginstruction-target | function.domprocessinginstruction-data | function.domnode-unlink-node | function.domnode-set-namespace | function.domnode-set-name | function.domnode-set-content | function.domnode-replace-node | function.domnode-replace-child | function.domnode-remove-child | function.domnode-previous-sibling | function.domnode-prefix | function.domnode-parent-node | function.domnode-owner-document | function.domnode-node-value | function.domnode-node-type | function.domnode-node-name | function.domnode-next-sibling | function.domnode-last-child | function.domnode-is-blank-node | function.domnode-insert-before | function.domnode-has-child-nodes | function.domnode-has-attributes | function.domnode-get-content | function.domnode-first-child | function.domnode-dump-node | function.domnode-clone-node | function.domnode-child-nodes | function.domnode-attributes | function.domnode-append-sibling | function.domnode-append-child | function.domnode-add-namespace | function.domelement-tagname | function.domelement-set-attribute | function.domelement-set-attribute-node | function.domelement-remove-attribute | function.domelement-has-attribute | function.domelement-get-elements-by-tagname | function.domelement-get-attribute | function.domelement-get-attribute-node | function.domdocumenttype-system-id | function.domdocumenttype-public-id | function.domdocumenttype-notations | function.domdocumenttype-name | function.domdocumenttype-internal-subset | function.domdocumenttype-entities | function.domdocument-xinclude | function.domdocument-html-dump-mem | function.domdocument-get-elements-by-tagname | function.domdocument-get-element-by-id | function.domdocument-dump-mem | function.domdocument-dump-file | function.domdocument-document-element | function.domdocument-doctype | function.domdocument-create-text-node | function.domdocument-create-processing-instruction | function.domdocument-create-entity-reference | function.domdocument-create-element | function.domdocument-create-element-ns | function.domdocument-create-comment | function.domdocument-create-cdata-section | function.domdocument-create-attribute | function.domdocument-add-root | function.domattribute-value | function.domattribute-specified | function.domattribute-set-value | function.domattribute-name | function.dom-import-simplexml | function.dom-domxpath-registernamespace | function.dom-domxpath-query | function.dom-domxpath-evaluate | function.dom-domxpath-construct | function.dom-domtext-splittext | function.dom-domtext-iswhitespaceinelementcontent | function.dom-domtext-construct | function.dom-domprocessinginstruction-construct | function.dom-domnodelist-item | function.dom-domnode-replacechild | function.dom-domnode-removechild | function.dom-domnode-normalize | function.dom-domnode-lookupprefix | function.dom-domnode-lookupnamespaceuri | function.dom-domnode-issupported | function.dom-domnode-issamenode | function.dom-domnode-isdefaultnamespace | function.dom-domnode-insertbefore | function.dom-domnode-haschildnodes | function.dom-domnode-hasattributes | function.dom-domnode-clonenode | function.dom-domnode-appendchild | function.dom-domnamednodemap-item | function.dom-domnamednodemap-getnameditemns | function.dom-domnamednodemap-getnameditem | function.dom-domimplementation-hasfeature | function.dom-domimplementation-createdocumenttype | function.dom-domimplementation-createdocument | function.dom-domimplementation-construct | function.dom-domentityreference-construct | function.dom-domelement-setidattributens | function.dom-domelement-setidattributenode | function.dom-domelement-setidattribute | function.dom-domelement-setattributens | function.dom-domelement-setattributenodens | function.dom-domelement-setattributenode | function.dom-domelement-setattribute | function.dom-domelement-removeattributens | function.dom-domelement-removeattributenode | function.dom-domelement-removeattribute | function.dom-domelement-hasattributens | function.dom-domelement-hasattribute | function.dom-domelement-getelementsbytagnamens | function.dom-domelement-getelementsbytagname | function.dom-domelement-getattributens | function.dom-domelement-getattributenodens | function.dom-domelement-getattributenode | function.dom-domelement-getattribute | function.dom-domelement-construct | function.dom-domdocumentfragment-appendxml | function.dom-domdocument-xinclude | function.dom-domdocument-validate | function.dom-domdocument-schemavalidatesource | function.dom-domdocument-schemavalidate | function.dom-domdocument-savexml | function.dom-domdocument-savehtmlfile | function.dom-domdocument-savehtml | function.dom-domdocument-save | function.dom-domdocument-relaxngvalidatesource | function.dom-domdocument-relaxngvalidate | function.dom-domdocument-registernodeclass | function.dom-domdocument-normalizedocument | function.dom-domdocument-loadxml | function.dom-domdocument-loadhtmlfile | function.dom-domdocument-loadhtml | function.dom-domdocument-load | function.dom-domdocument-importnode | function.dom-domdocument-getelementsbytagnamens | function.dom-domdocument-getelementsbytagname | function.dom-domdocument-getelementbyid | function.dom-domdocument-createtextnode | function.dom-domdocument-createprocessinginstruction | function.dom-domdocument-createentityreference | function.dom-domdocument-createelementns | function.dom-domdocument-createelement | function.dom-domdocument-createdocumentfragment | function.dom-domdocument-createcomment | function.dom-domdocument-createcdatasection | function.dom-domdocument-createattributens | function.dom-domdocument-createattribute | function.dom-domdocument-construct | function.dom-domcomment-construct | function.dom-domcharacterdata-substringdata | function.dom-domcharacterdata-replacedata | function.dom-domcharacterdata-insertdata | function.dom-domcharacterdata-deletedata | function.dom-domcharacterdata-appenddata | function.dom-domattr-isid | function.dom-domattr-construct | function.directoryiterator-isdot | function.dbplus-undoprepare | function.dbplus-undo | function.cpdf-global-set-document-limits | function.ccvs-done | function.bindtextdomain | function.bind-textdomain-codeset | control-structures.do.while | class.dotnet |
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.