php-documentation-list | 2000092
Date: 09/30/00
- Next message: Sebastian Bergmann: "[PHP-DOC] cvs: phpdoc /de/language references.xml"
- Previous message: Rui Hirokawa: "[PHP-DOC] cvs: phpdoc /en/functions aspell.xml http.xml hw.xml ifx.xml imap.xml info.xml mysql.xml /ja/appendices phpdevel.xml /ja/chapters intro.xml /ja/features error-handling.xml file-upload.xml /ja/functions aspell.xml cpdf.xml cybercash.xml datetime.xml http.xml hw.xml ibase.xml ifx.xml image.xml imap.xml info.xml math.xml mysql.xml network.xml pdf.xml posix.xml recode.xml strings.xml swf.xml var.xml yaz.xml /ja/language control-structures.xml functions.xml operators.xml variables.xml"
- Next in thread: Sebastian Bergmann: "[PHP-DOC] cvs: phpdoc /de/language references.xml"
- Maybe reply: Sebastian Bergmann: "[PHP-DOC] cvs: phpdoc /de/language references.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
sbergmann Sat Sep 30 01:59:35 2000 EDT
Modified files:
/phpdoc/de/language references.xml
Log:
First incomplete draft of references.xml.
Index: phpdoc/de/language/references.xml
diff -u phpdoc/de/language/references.xml:1.2 phpdoc/de/language/references.xml:1.3
--- phpdoc/de/language/references.xml:1.2 Tue Sep 12 23:27:52 2000
+++ phpdoc/de/language/references.xml Sat Sep 30 01:59:35 2000
@@ -1,39 +1,43 @@
<chapter id="language.references">
- <title>References Explained</title>
+ <title>Referenzen in PHP</title>
<sect1 id="language.references.whatare">
- <title>What References Are</title>
+ <title>Was Referenzen sind</title>
<simpara>
- References in PHP are means to call same variable content with
- different names. They are not like C pointers, they are symbol
- table aliases. Note that in PHP, variable names and variable
- content are different, so same content can have different
- names. The most close analogy is Unix filenames and files -
- variable names are directory entries, while variable contents is
- the file itself. References can be thought of as hardlinking in
- Unix filesystem.
+ Referenzen sind ein Mechanismus in PHP um verschiedene Namen
+ für den gleichen Inhalt von Variablen zu haben. Sie sind nicht
+ mit Zeigern in zu vergleichen, sondern Aliasdefinitionen für
+ die Symboltabelle. PHP unterscheidet zwischen Variablenname
+ und Variableninhalt, wobei der gleiche Variableninhalt
+ unterschiedliche Namen besitzen kann. Der bestmögliche Vergleich
+ ist der mit Dateinamen und Dateien im Dateisystem von Unix -
+ Variablennamen sind Verzeichniseinträge, während der
+ Variableninhalt die eigentliche Datei darstellt. Referenzen
+ können nun als Hardlinks im Dateisystem verstanden werden.
</simpara>
</sect1>
<sect1 id="language.references.whatdo">
- <title>What References Do</title>
+ <title>Was Referenzen leisten</title>
<para>
- PHP references allow you to make two variables to refer to the
- same content. Meaning, when you do:
+ PHP Referenzen erlauben es, zwei Variablennamen sich auf den
+ gleichen Variableninhalt beziehen zu lassen. Das heisst im
+ folgenden Beispiel, dass sich <varname>$a</varname> und
+ <varname>$b</varname> auf dieselbe Variable beziehen:
+
<informalexample>
<programlisting role="php">
$a =& $b
</programlisting>
</informalexample>
- it means that <varname>$a</varname> and <varname>$b</varname>
- point to the same variable.
+
<note>
<para>
- <varname>$a</varname> and <varname>$b</varname> are completely
- equal here, that's not <varname>$a</varname> is pointing to
- <varname>$b</varname> or vice versa, that's
- <varname>$a</varname> and <varname>$b</varname> pointing to the
- same place.
+ <varname>$a</varname> und <varname>$b</varname> sind hier
+ gleichwertig, und <varname>$a</varname> ist nicht nur ein
+ Zeiger auf <varname>$b</varname> oder umgekehrt, sondern
+ <varname>$a</varname> und <varname>$b</varname> zeigen auf
+ den selben Inhalt.
</para>
</note>
</para>
@@ -63,7 +67,7 @@
</sect1>
<sect1 id="language.references.arent">
- <title>What References Are Not</title>
+ <title>Was Referenzen nicht sind</title>
<para>
As said above, references aren't pointers. That means, the
following construct won't do what you expect:
@@ -90,7 +94,7 @@
</sect1>
<sect1 id="language.references.return">
- <title>Returning References</title>
+ <title>Referenzen zurückgeben</title>
<para>
Returning by-refernce it is useful when you want to use function
to find variable which should be bound to. When returning
@@ -122,7 +126,7 @@
</sect1>
<sect1 id="language.references.unset">
- <title>Unsetting References</title>
+ <title>Referenzen aufheben</title>
<para>
When you unset the reference, you just break the binding between
variable name and variable content. This does not mean that
@@ -143,7 +147,7 @@
</sect1>
<sect1 id="language.references.spot">
- <title>Spotting References</title>
+ <title>Referenzen entdecken</title>
<simpara>
Many syntax constructs in PHP are implemented via referencing
mechanisms, so everything told above about reference binding also
- Next message: Sebastian Bergmann: "[PHP-DOC] cvs: phpdoc /de/language references.xml"
- Previous message: Rui Hirokawa: "[PHP-DOC] cvs: phpdoc /en/functions aspell.xml http.xml hw.xml ifx.xml imap.xml info.xml mysql.xml /ja/appendices phpdevel.xml /ja/chapters intro.xml /ja/features error-handling.xml file-upload.xml /ja/functions aspell.xml cpdf.xml cybercash.xml datetime.xml http.xml hw.xml ibase.xml ifx.xml image.xml imap.xml info.xml math.xml mysql.xml network.xml pdf.xml posix.xml recode.xml strings.xml swf.xml var.xml yaz.xml /ja/language control-structures.xml functions.xml operators.xml variables.xml"
- Next in thread: Sebastian Bergmann: "[PHP-DOC] cvs: phpdoc /de/language references.xml"
- Maybe reply: Sebastian Bergmann: "[PHP-DOC] cvs: phpdoc /de/language references.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

