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.
Creates an anonymous function from the parameters passed, and returns a unique name for it.
Usually these parameters will be passed as single quote delimited strings. The reason for using single quoted strings, is to protect the variable names from parsing, otherwise, if you use double quotes there will be a need to escape the variable names, e.g. \$avar.
argsThe function arguments.
codeThe function code.
Or, perhaps to have general handler function that can apply a set of operations to a list of parameters:
Example 2. Making a general processing function with create_function()
The above example will output:
|
But perhaps the most common use for of lambda-style (anonymous) functions is to create callback functions, for example when using array_walk() or usort()
Example 3. Using anonymous functions as callback functions
The above example will output:
an array of strings ordered from shorter to longer
The above example will output:
sort it from longer to shorter
The above example will output:
|
Another Useful functions:
zend.creating | zend-macro.vcwd-creat | zend-api.zend-object-create-proxy | zend-api.virtual-creat | function.xslt-create | function.xmlrpc-server-destroy | function.xmlrpc-server-create | function.xmlrpc-server-create | function.xmlrpc-server-call-method | function.xml-parser-create | function.xml-parser-create-ns | function.win32-create-service | function.stream-context-create | function.sqlite-create-function | function.sqlite-create-aggregate | function.socket-create | function.socket-create-pair | function.socket-create-listen | function.sdo-dataobject-createdataobject | function.sdo-datafactory-create | function.sdo-das-xml-createdocument | function.sdo-das-xml-createdataobject | function.sdo-das-xml-create | function.sdo-das-relational-createrootdataobject | function.sca-soapproxy-createdataobject | function.sca-localproxy-createdataobject | function.sca-createdataobject | function.radius-create-request | function.px-create-fp | function.pspell-config-create | function.printer-create-pen | function.printer-create-font | function.printer-create-dc | function.printer-create-brush | function.pg-lo-create | function.pdo-sqlitecreatefunction | function.pdo-sqlitecreateaggregate | function.pdo-pgsqllobcreate | function.pdf-set-info-creator | function.pdf-create-textflow | function.pdf-create-pvf | function.pdf-create-gstate | function.pdf-create-fieldgroup | function.pdf-create-field | function.pdf-create-bookmark | function.pdf-create-annotation | function.pdf-create-action | function.openal-source-create | function.openal-context-create | function.openal-buffer-create | function.notes-nav-create | function.notes-create-note | function.notes-create-db | function.newt-create-grid | function.mysql-create-db | function.msql-createdb | function.msql-create-db | function.msession-create | function.mcrypt-create-iv | function.mcal-create-calendar | function.mailparse-msg-create | function.kadm5-create-principal | function.imap-createmailbox | function.imagecreatetruecolor | function.imagecreatefromxpm | function.imagecreatefromxbm | function.imagecreatefromwbmp | function.imagecreatefromstring | function.imagecreatefrompng | function.imagecreatefromjpeg | function.imagecreatefromgif | function.imagecreatefromgd2part | function.imagecreatefromgd2 | function.imagecreatefromgd | function.imagecreate | function.ifxus-create-slob | function.ifx-create-char | function.ifx-create-blob | function.icap-create-calendar | function.ibase-blob-create | function.harupage-createurlannotation | function.harupage-createtextannotation | function.harupage-createlinkannotation | function.harupage-createdestination | function.harudoc-createoutline | function.fdf-create | function.fbsql-create-db | function.fbsql-create-clob | function.fbsql-create-blob | 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.dom-domimplementation-createdocumenttype | function.dom-domimplementation-createdocument | 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.dbplus-rcreate | function.dbase-create | function.date-create | function.create-function | function.cpdf-set-creator | function.com-create-guid |
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.