PHP: What References Are Not - Manual in Deutsh
PHP: What References Are Not - Manual in French
PHP: What References Are Not - Manual in Polish

You Are At PHP: What References Are Not - Manual Area


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.

PHP Manual
PrevChapter 21. References ExplainedNext

What References Are Not

As said before, references aren't pointers. That means, the following construct won't do what you expect:

<?php
function foo(&$var)
{
    
$var =& $GLOBALS["baz"];
}
foo($bar);
?>

What happens is that $var in foo will be bound with $bar in caller, but then it will be re-bound with $GLOBALS["baz"]. There's no way to bind $bar in the calling scope to something else using the reference mechanism, since $bar is not available in the function foo (it is represented by $var, but $var has only variable contents and not name-to-value binding in the calling symbol table). You can use returning references to reference variables selected by the function.

klimatyzacje lg warszawa
uroda
Koszulki Smoke Story Koszulki Smoke Story
Electro lista serwisów
Na budowie Opel Corsa mur niszczy mur z cegieł Ciągnie i przewrac

Another Useful functions:


zendapi-reference | reference.pcre.pattern.syntax | reference.pcre.pattern.modifiers | language.references.whatdo | language.references.unset | language.references.spot | language.references.return | language.references.pass | language.references | language.references.arent | function.mb-preferred-mime-name | function.ldap-parse-reference | function.ldap-next-reference | function.ldap-first-reference | function.domdocument-create-entity-reference | function.dom-domentityreference-construct | function.dom-domdocument-createentityreference | function.cpdf-set-viewer-preferences |


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.