<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>IT08 - Blogs</title>
        <description>Aktuelle Blogs</description>
        <image>
            <url>http://it08.tb-world.de/css/images/logo.png</url>
            <title>IT08 - Blogs</title>
            <link>http://it08.tb-world.de/</link>
        </image>
        <link>http://it08.tb-world.de/</link>
        <lastBuildDate>Tue, 26 Apr 2011 20:14:39 +0200</lastBuildDate>
        <docs>http://blogs.law.harvard.edu/tech/rss</docs>
        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Unaxus-der-guenstige-Webhoster/#comments</comments>
            <title>Unaxus der guenstige Webhoster</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Unaxus-der-guenstige-Webhoster/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Unaxus-der-guenstige-Webhoster/</guid>
            <category>Sonstiges</category>
            <description>Hallo Leute heute möchte ich euch mal einen guten und günstigen Webhoster empfehlen &lt;a href=&quot;https://unaxus.com/icarus/aff.php?aff=091&quot;&gt;unaxus.com&lt;/a&gt;, ich bin schon seit Jahren Kunde bei unaxus. für kleine Sachen reicht das locker aus.&lt;br /&gt;
&lt;br /&gt;
Folgende Ausstattungen und Webhosting Features bietet &lt;a href=&quot;https://unaxus.com/icarus/aff.php?aff=091&quot;&gt;unaxus.com&lt;/a&gt; für einen Preis von 4,99 Euro pro Monat an, eine Setupgebühr gibt es nicht, zuzahlen ist im vorraus für ein Jahr.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Web Features&lt;/h2&gt;&lt;br /&gt;
50 GB Speicherplatz&lt;br /&gt;
50 Domainaccounts&lt;br /&gt;
UNAXUS Control Panel&lt;br /&gt;
Traffic Flat Rate&lt;br /&gt;
Unlimitiert FTP Accounts&lt;br /&gt;
Unlimitiert MySQL Datenbanken&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Mail Features&lt;/h2&gt;&lt;br /&gt;
Unlimitiert Mail Adressen&lt;br /&gt;
POP3 / SMTP / IMAP ready&lt;br /&gt;
WEBMAIL PRO (Horde und SquirrelMail vorinstalliert)&lt;br /&gt;
SPAM Schutz&lt;br /&gt;
MX Eintrag Editierbar&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Technische Features&lt;/h2&gt;&lt;br /&gt;
Schnelle Rackserver von HP (Intel Quad XEON Prozessoren, 12+ GB Ram, RAID Festplatten, Gbit NIC)&lt;br /&gt;
High Secure Rechenzentrum&lt;br /&gt;
Disaster Recovery&lt;br /&gt;
24/7 Server Monitoring&lt;br /&gt;
Performante Backbone&lt;br /&gt;
Linux OS&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Script Features&lt;/h2&gt;&lt;br /&gt;
PHP ready ( Version 5.2x PHP 5.3 kommt demnächst)&lt;br /&gt;
Flash ready&lt;br /&gt;
Joomla ready&lt;br /&gt;
Wordpress ready&lt;br /&gt;
Drupal ready&lt;br /&gt;
Typo3 ready&lt;br /&gt;
vBulletin ready&lt;br /&gt;
PHPBB ready&lt;br /&gt;
Ruby on Rails&lt;br /&gt;
mod_rewrite&lt;br /&gt;
Passwort Schutz&lt;br /&gt;
GD Unterstützung&lt;br /&gt;
XML Unterstützung&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Weitere Features&lt;/h2&gt;&lt;br /&gt;
Kostenfreier Support per Telefon&lt;br /&gt;
24/7 Support per E-Mail&lt;br /&gt;
Web Disk Pro&lt;br /&gt;
Unlimited Subdomains&lt;br /&gt;
Cron Jobs&lt;br /&gt;
Web Statistiken&lt;br /&gt;
DNS Management Plus&lt;br /&gt;
Business Option erhältlich (kostenpflichtig)&lt;br /&gt;
Web Site Builder&lt;br /&gt;
&lt;br /&gt;
Schaut einfach rein &lt;a href=&quot;https://unaxus.com/icarus/aff.php?aff=091&quot;&gt;unaxus.com&lt;/a&gt;</description>
            <pubDate>Tue, 26 Apr 2011 20:14:39 +0200</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/OOP-Registry-Pattern-Entwurfsmuster-in-PHP/#comments</comments>
            <title>OOP Registry Pattern (Entwurfsmuster) in PHP</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/OOP-Registry-Pattern-Entwurfsmuster-in-PHP/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/OOP-Registry-Pattern-Entwurfsmuster-in-PHP/</guid>
            <category>PHP</category>
            <description>&lt;h2&gt;Das Registry Pattern&lt;/h2&gt;&lt;br /&gt;
Um aus verschiedenen Klassen oder Funktionen auf &amp;quot;globale&amp;quot; Objekte und Variablen zuzugreifen, gibt es das Registry-Entwurfsmuster, man trifft es sehr häufig neben dem Singleton Pattern.&lt;br /&gt;
Eine Registry ist streng gesehen nur eine Verschiebung des globalen Gültigkeitsbereiches.&lt;br /&gt;
Die Registry kann als abstract deklariert werden, da nur statische Attribute und Methoden verwendet werden.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
so zu erst die Klasse/n&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Variante mit Exceptions&lt;/h3&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;abstract &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; Registry&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Object registry provides storage for shared objects&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @var array &lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; static &lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Adds a new variable to the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param string $key Name of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param mixed $value Value of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @throws Exception&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; set&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; Exception&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'Unable to set variable `'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'`. It was already set.'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Adds a new variables from an array to the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param array $array The list of variabls&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @throws Exception&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; setFromArray&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$array&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;null&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;!&lt;/span&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/empty&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$array&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$array&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;as&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; Exception&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'Array of Variabls was empty.'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * change a variable to the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param string $key Name of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param mixed $value Value of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @throws Exception&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean &lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; change&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; Exception&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'Unable to change variable `'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'`. It was not set.'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Tests if given $key exists in registry&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param string $key&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; has&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/isset&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;isset&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Returns the value of the specified $key in the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param string $key Name of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return mixed Value of the specified $key&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; get&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Returns the whole Registry as an array.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return array Whole Registry&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; getAll&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Removes a variable from the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param string $key Name of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; remove&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/unset&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;unset&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Removes all variables from the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; removeAll&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Gets the number ob variables in the Registry&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return integer&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; size&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/sizeof&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;sizeof&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Variante 2 ohne Exceptions&lt;/h3&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;abstract &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; Registry&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Object registry provides storage for shared objects&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @var array &lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; static &lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Adds a new variable to the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param string $key Name of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param mixed $value Value of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @throws Exception&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; set&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'Unable to set variable `'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'`. It was already set.'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/exit&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;exit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Adds a new variables from an array to the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param array $array The list of variabls&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @throws Exception&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; setFromArray&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$array&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;null&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;!&lt;/span&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/empty&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$array&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$array&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;as&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'Array of Variabls was empty.'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/exit&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;exit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * change a variable to the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param string $key Name of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param mixed $value Value of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @throws Exception&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean &lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; change&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$value&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'Unable to change variable `'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'`. It was not set.'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/exit&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;exit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Tests if given $key exists in registry&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param string $key&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; has&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/isset&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;isset&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Returns the value of the specified $key in the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param string $key Name of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return mixed Value of the specified $key&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; get&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Returns the whole Registry as an array.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return array Whole Registry&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; getAll&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Removes a variable from the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @param string $key Name of the variable&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; remove&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/unset&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;unset&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$key&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Removes all variables from the Registry.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return boolean&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; removeAll&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;/**&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * Gets the number ob variables in the Registry&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; *&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; * @return integer&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009933; font-style: italic;&quot;&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; size&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/sizeof&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;sizeof&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_registry&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Welche Variante ihr benutzt liegt an euch solltet ihr aber die Exceptions Variante nutze bedenkt die Exceptions auf zufangen mit&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Auffangen der Exeptions mit der Exception Variante&lt;/h3&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;try &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// ausführen von Registry::set( $key, $value ); &lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// oder von Registry::setFromArray( array( 'val1' =&amp;gt; 'abc' ) );&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// oder von Registry::change( $key, $value );&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;catch &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; Exception &lt;span style=&quot;color: #000088;&quot;&gt;$e&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$e&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;getMessage&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$traceArray&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$e&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;getTrace&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// macht was ihr wollt mit dem Trace ;) :D&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;br /&gt;
&lt;br /&gt;
File ambesten speichern als class.Registry.php&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Der include der Klasse&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;include&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'path_to_class'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;DIRECTORY_SEPARATOR&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'class.Registry.php'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
um die Klasse zu nutzen geht man wie folgt vor&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Eine Variable in die Registry schreiben&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'test'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'Ich bin ueberall verfuegbar.'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Variable aus einem Array in die Registry schreiben&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$array&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'value1'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'ich'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'vaule2'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'du'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;setFromArray&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$array&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Eine Variable aus der Registry lesen&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$test&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'test'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Output: ich bin ueberall verfuegbar.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$test&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Alle Variablen aus der Registry als array geben lasse&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$all&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;getAll&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Eine Variable aus der Registry entfernen&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;remove&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'test'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Alle Variablen aus der Registry entfernen&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;removeAll&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Eine Variable aus der Registry ändern&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;change&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'test'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'ich bin immer noch ueberall verfuegbar'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Prüfen ob eine Variable in der Registry gesetzt ist&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'test'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Die Anzahl aller Variablen aus der Rigistry geben lassen&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$registrySite&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$registrySize&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Das Registry Pattern läst sich wunderbar mit den &lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/OOP-Das-Singleton-Pattern/&quot;&gt;Singleton Pattern&lt;/a&gt; Verbinden&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; singletonExample&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;......&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Singleton instance&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; getInstance&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;has&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'singletonExample'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;===&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'singletonExample'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; Registry&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #004000;&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #008800;&quot;&gt;'singletonExample'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;......&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
            <pubDate>Thu, 21 Apr 2011 02:14:38 +0200</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/OOP-Das-Singleton-Pattern/#comments</comments>
            <title>OOP Das Singleton Pattern</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/OOP-Das-Singleton-Pattern/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/OOP-Das-Singleton-Pattern/</guid>
            <category>Allgemeines</category>
            <description>&lt;h2&gt;Design Pattern (Entwurfsmuster)&lt;/h2&gt;Pattern sind eine Möglichkeit, um optimale Verfahren und gute Entwürfe zu beschreiben. Sie zeigen eine flexible Lösung für verbreitete Programierprobleme.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Kategorie&lt;/h2&gt;Das Singleton Pattern wird zu den &amp;quot;Creational Patterns&amp;quot; gezählt, da es Objekte erzeugt und zurückliefert.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Der Einsatzbereich des Singleton Patterns&lt;/h2&gt;Das Einzelstück (Singleton) Pattern greift in Situationen, in denen es nur eine Instanz einer Klasse geben darf, dabei wird die direkte Instanziierung des Objekts über den Standardkonstuktor verhindert, in dem dieser den modifier private verwendet. &lt;br /&gt;
Damit aber auch außerhalb der Klasse eine Instanz angefordert werden kann wird eine statische Methode namens getInstance() beireitgestellt, diese Methode liefert dann die einzige Instanz der klasse zurück&lt;br /&gt;
&lt;br /&gt;
Das gebräuchlichste Beispiel ist eine Datenbankverbindung. Die Implementierung dieses Musters erlaubt dem Programmierer diese einzige Instanz leicht für viele andere Objekte zugänglich zu machen.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Vorteile&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Zugriffskontrolle kann realisiert werden.&lt;/li&gt;&lt;li&gt;Das Einzelstück kann durch Unterklassenbildung spezialisiert werden.&lt;/li&gt;&lt;li&gt;Welche Unterklasse verwendet werden soll, kann zur Laufzeit entschieden werden&lt;/li&gt;&lt;li&gt;Die Einzelinstanz muss nur erzeugt werden, wenn sie benötigt wird.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;Nachteile&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;Es besteht die große Gefahr, durch exzessive Verwendung von Singletons quasi ein Äquivalent zu globalen Variablen zu implementieren und damit dann prozedural anstatt objektorientiert zu programmieren.&lt;/li&gt;&lt;li&gt;Abhängigkeiten zur Singleton-Klasse werden verschleiert, d. h. ob eine Singleton-Klasse verwendet wird, erschließt sich nicht aus dem Interface einer Klasse, sondern nur anhand der Implementierung. Zudem wird die Kopplung erhöht, was Wiederverwendbarkeit und Übersichtlichkeit einschränkt.&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;Beispiele&lt;/h3&gt;&lt;br /&gt;
&lt;div class=&quot;hint&quot;&gt;&lt;div class=&quot;hint-title&quot;&gt;lazy initialization&lt;/div&gt;&lt;div class=&quot;hint-text&quot;&gt;Das Konzept der lazy initialization, d.h. das Objekt wird erst instanziiert, wenn es erstmalig angefordert wird. Der Vorteil ist, daß, wenn das Singleton niemals verwendet wird, getInstance() also niemals aufgerufen wird, auch kein Speicher (und damit ggf. verbunde Resourcen) belegt wird.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;JAVA ohne lazy initialization&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; SimpleSingleton &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;static&lt;/span&gt; SimpleSingleton INSTANCE &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; SimpleSingleton&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//Marking default constructor private&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//to avoid direct instantiation.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; SimpleSingleton&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//Get instance for class SimpleSingleton&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;static&lt;/span&gt; SimpleSingleton getInstance&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; INSTANCE&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;JAVA mit lazy initialization&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; SimpleSingleton &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; SimpleSingleton singleInstance &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//Marking default constructor private&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//to avoid direct instantiation.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; SimpleSingleton&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//Get instance for class SimpleSingleton&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;static&lt;/span&gt; SimpleSingleton getInstance&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;null&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;==&lt;/span&gt; singleInstance&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;singleInstance &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; SimpleSingleton&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; singleInstance&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
So und da es ja nur eine Instanz des Objektes geben darf müssen das clonen der Instanz unterbinden, das geschieht wie folgt&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Aobject+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Object&lt;/span&gt;&lt;/a&gt; clone&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;throws&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Aclonenotsupportedexception+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;CloneNotSupportedException&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;throw&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Aclonenotsupportedexception+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;CloneNotSupportedException&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
und wenn das ganze multi-threaded fähig sein soll müsste die getInstance() Methode den modifier synchronized bekommen&lt;br /&gt;
also so&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;synchronized&lt;/span&gt; SimpleSingleton getInstance&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#123;&lt;/span&gt; .... &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Hier die PHP5 Variante mit lazy initialization&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; Beispiel&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Speichert die Instanz der Klasse&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; static &lt;span style=&quot;color: #000088;&quot;&gt;$instance&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;null&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Ein private-Konstruktor; verhindert die direkte Erzeugung des Objektes&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; __construct&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'Ich bin hergestellt'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Die Singleton-Methode&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; static &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; singleton&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$instance&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;===&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;null&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$instance&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;::&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$instance&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Beispielmethode&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; bellen&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'Wuff!'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Halte Benutzer vom Klonen der Instanz ab&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; __clone&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/trigger_error&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;trigger_error&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'Klonen ist nicht erlaubt.'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;E_USER_ERROR&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
            <pubDate>Mon, 28 Mar 2011 20:36:39 +0200</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Japan-wir-sind-bei-dir/#comments</comments>
            <title>Japan wir sind bei dir</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Japan-wir-sind-bei-dir/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Japan-wir-sind-bei-dir/</guid>
            <category>Sonstiges</category>
            <description>Es regiert zurzeit sämtliche Medien, das Erdbeben in Japan und der darauf folgende &amp;nbsp;Tsunami, es ist wohl das schlimmste Unglück Japans seit 65 Jahren.&lt;br /&gt;
&lt;br /&gt;
Aus diesem Anlass möchte ich drauf aufmerksam machen das der Internet-Konzern Google eine Personen-Suche in Japanisch und Englisch gestartet hat, wo unter anderem gespendet werden kann, aber auch eine Suche nach vermissten Personen ist möglich.&lt;br /&gt;
&lt;br /&gt;
Zu finden ist der Dienst von Google unter folgender Adresse&lt;br /&gt;
&lt;a href=&quot;http://www.google.com/crisisresponse/japanquake2011.html&quot;&gt;http://www.google.com/crisisresponse/japanquake2011.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Eigentlich brauche ich dazu gar nicht viel sagen da dieses schlimme Ereignis die Medien seit dem 11.03.2011 anführt.&lt;br /&gt;
&lt;br /&gt;
Aber eines kann ich tun wozu ich alle anderen Aufrufen&lt;br /&gt;
Spendet Mitgefühl und Ehrfurcht für Japan, und hofft das Japan diese Tragödie gut übersteht.&lt;br /&gt;
&lt;strong&gt;Mein herzliches Beileid Japan.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Japan wir sind bei dir&lt;/h2&gt;</description>
            <pubDate>Mon, 14 Mar 2011 14:34:15 +0100</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-5-Eine-normalisierte-Datenbank/#comments</comments>
            <title>Normalisierung Teil 5 Eine normalisierte Datenbank</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-5-Eine-normalisierte-Datenbank/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-5-Eine-normalisierte-Datenbank/</guid>
            <category>Allgemeines</category>
            <description>&lt;h2&gt;1. Da fehlt noch was&lt;/h2&gt;&lt;br /&gt;
Bei der Erläuterung der zweiten Normalform habe ich noch nichts zur Tabelle Bestellungen gesagt, da es dort keine Rolle spielte. Darum hole ich das hier nach. Bis jetzt haben wir drei Tabellen und zwar produkt, kunde und hersteller. Um nun eine Beziehung/Relation zu den Bestellungen herzustellen, müssen wir die IDs der einzelnen Datensätze zusammen mit der gewünschten Anzahl in einer weiteren Tabelle zusammenfassen. Die Sache mit den Paketlieferanten vergessen wir erst mal.&lt;br /&gt;
&lt;h2&gt;2. Unsere bisherigen Tabellen&lt;/h2&gt;&lt;br /&gt;
&lt;strong&gt;produkt&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+------------+------+------+&lt;br /&gt;
|id|produkt &amp;nbsp; &amp;nbsp; |preis |nummer|&lt;br /&gt;
+--+------------+------+------+&lt;br /&gt;
| 1|Schlagbohrer|199.95|1000-1|&lt;br /&gt;
| 2|Zement &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;5.95|1000-2|&lt;br /&gt;
| 3|Kneifzange &amp;nbsp;| 19.95|1000-3|&lt;br /&gt;
| 4|Brecheisen &amp;nbsp;| 49.95|1000-4|&lt;br /&gt;
| 5|Hammer &amp;nbsp; &amp;nbsp; &amp;nbsp;| 19.95|1000-5|&lt;br /&gt;
+--+------------+------+------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;kunde&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+------------+-------+-------+------------+-----+------------+&lt;br /&gt;
|id|doktor &amp;nbsp; &amp;nbsp; &amp;nbsp;|telefon|fax &amp;nbsp; &amp;nbsp;|strasse &amp;nbsp; &amp;nbsp; |plz &amp;nbsp;|ort &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+--+------------+---------------+------------+-----+------------+&lt;br /&gt;
| 1|Blutgesicht |123-550|123-551|Kariesweg 1 |12345|Zahnstein &amp;nbsp; |&lt;br /&gt;
| 2|Quälstein &amp;nbsp; |456-777|456-778|Lochpfad 23 |23458|Schmerzstadt|&lt;br /&gt;
| 3|Eisenfaust &amp;nbsp;|789-250|789-251|Zahnwurzel 3|87454|Dolomostadt |&lt;br /&gt;
| 4|Rostzange &amp;nbsp; |234-100|234-101|Peinweg 5 &amp;nbsp; |74512|Reissheim &amp;nbsp; |&lt;br /&gt;
| 5|Frankenstein|567-200|567-201|Am Dom 5 &amp;nbsp; &amp;nbsp;|50670|Köln &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+--+------------+-------+-------+------------+-----+------------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;hersteller&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+-----------+-------+-------+------------+-----+------------+&lt;br /&gt;
|id|zulieferer |telefon|fax &amp;nbsp; &amp;nbsp;|strasse &amp;nbsp; &amp;nbsp; |plz &amp;nbsp;|ort &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+--+-----------+---------------+------------+-----+------------+&lt;br /&gt;
| 1|Hilti &amp;nbsp; &amp;nbsp; &amp;nbsp;|111-345|111-346|Bohrweg 25 &amp;nbsp;|70001|Keine Ahnung|&lt;br /&gt;
| 2|Hoch &amp;amp; Tief|211-100|211-110|Schlammweg 2|50041|Wasweissich |&lt;br /&gt;
| 3|Eisen-Karl |504-561|504-562|Kruppstr. 57|43254|Bochum &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 4|Stahl AG &amp;nbsp; |600-400|600-410|Alfred-Weg 4|47847|Dortmund &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+--+-----------+-------+-------+------------+-----+------------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;3. Unsere angepasste Tabelle bestellung&lt;/h2&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+------+-----+-----+-----+&lt;br /&gt;
|id|anzahl|pr_id|kd_id|hr_id|&lt;br /&gt;
+--+------+-----+-----+-----+&lt;br /&gt;
| 1|1 &amp;nbsp; &amp;nbsp; |1 &amp;nbsp; &amp;nbsp;|1 &amp;nbsp; &amp;nbsp;|1 &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 2|5 &amp;nbsp; &amp;nbsp; |2 &amp;nbsp; &amp;nbsp;|2 &amp;nbsp; &amp;nbsp;|2 &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 3|3 &amp;nbsp; &amp;nbsp; |3 &amp;nbsp; &amp;nbsp;|3 &amp;nbsp; &amp;nbsp;|3 &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 4|7 &amp;nbsp; &amp;nbsp; |4 &amp;nbsp; &amp;nbsp;|4 &amp;nbsp; &amp;nbsp;|3 &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 5|4 &amp;nbsp; &amp;nbsp; |5 &amp;nbsp; &amp;nbsp;|5 &amp;nbsp; &amp;nbsp;|4 &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 6|9 &amp;nbsp; &amp;nbsp; |2 &amp;nbsp; &amp;nbsp;|3 &amp;nbsp; &amp;nbsp;|2 &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 7|2 &amp;nbsp; &amp;nbsp; |4 &amp;nbsp; &amp;nbsp;|1 &amp;nbsp; &amp;nbsp;|3 &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+--+------+-----+-----+-----+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Wir legen drei neue Spalten an, in denen wir die IDs als so genannte Fremdschlüssel hinterlegen. Ach ja, so ein Konstrukt nennt man auch Relationstabelle, da sie die Beziehungen der Datensätze untereinander abbildet.&lt;br /&gt;
pr_id -&amp;gt; id der Tabelle produkt&lt;br /&gt;
kd_id -&amp;gt; id der Tabelle kunde&lt;br /&gt;
hr_id -&amp;gt; id der Tabelle hersteller&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-1/&quot;&gt;zu Teil 1 Normalisierung &lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-2-die-1-Normalform/&quot;&gt;zu Teil 2 1. Normalform&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-3-die-2-Normalform/&quot;&gt;zu Teil 3 2. Normalform&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-4-die-3-Normalform/&quot;&gt;zu Teil 4 3. Normalform&lt;/a&gt;</description>
            <pubDate>Sun, 27 Feb 2011 23:34:41 +0100</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-4-die-3-Normalform/#comments</comments>
            <title>Normalisierung Teil 4 die 3. Normalform</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-4-die-3-Normalform/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-4-die-3-Normalform/</guid>
            <category>Allgemeines</category>
            <description>&lt;h2&gt;1. Bedingung&lt;/h2&gt;&lt;br /&gt;
Eine Datenbank/Relation befindet sich dann in der dritten Normalform (3NF), wenn die zweite Normalform erfüllt ist und keine so genannten transitiven Abhängigkeiten bestehen. Ins Hochdeutsche übersetzt bedeutet es folgendes:&lt;br /&gt;
Irgendein Feld eines Datensatzes ist von einem anderen Feld abhängig, das kein Primärschlüssel ist. Um euch das anschaulich zu erklären, erstellen wir mal eine Tabelle mit Lieferzeiten, den Firmen und deren Zuverlässigkeit.&lt;br /&gt;
&lt;h2&gt;2. Unsere Tabelle Lieferanten&lt;/h2&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+----------+----------------+--------+&lt;br /&gt;
|id|lieferzeit|firma &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |verlass |&lt;br /&gt;
+--+----------+----------------+--------+&lt;br /&gt;
| 1|12h &amp;nbsp; &amp;nbsp; &amp;nbsp; |SupiTrans &amp;nbsp; &amp;nbsp; &amp;nbsp; |hoch &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 2|24h &amp;nbsp; &amp;nbsp; &amp;nbsp; |SupiTrans &amp;nbsp; &amp;nbsp; &amp;nbsp; |hoch &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 3| 8h &amp;nbsp; &amp;nbsp; &amp;nbsp; |HyperCompoGlobal|mittel &amp;nbsp;|&lt;br /&gt;
| 4| 4h &amp;nbsp; &amp;nbsp; &amp;nbsp; |SuperMegaNet &amp;nbsp; &amp;nbsp;|saumäßig|&lt;br /&gt;
| 5|16h &amp;nbsp; &amp;nbsp; &amp;nbsp; |SuperMegaNet &amp;nbsp; &amp;nbsp;|saumäßig|&lt;br /&gt;
| 6|irgendwann|Post AG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |saumäßig|&lt;br /&gt;
+--+----------+----------------+--------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Man kann also eine Firma aus ihrer Lieferzeit ableiten. Die Zuverlässigkeit ergibt sich aber aus der Firma. Das Problem ist offensichtlich. Bietet eine Firma einen neuen Lieferservice an, so wird die Verlässlichkeit für diese Firma zweimal abgespeichert. Also wird die Tabelle aufgeteilt.&lt;br /&gt;
&lt;h2&gt;3. Die Aufteilung&lt;/h2&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Tabelle lieferzeit&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+----------+&lt;br /&gt;
|id|zeit &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+--+----------+&lt;br /&gt;
| 1|12h &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| 2|24h &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| 3| 8h &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| 4| 4h &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| 5|16h &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| 6|irgendwann|&lt;br /&gt;
+--+----------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Hier werden nur die Lieferzeiten abgespeichert und mit einer eindeutigen ID versehen.&lt;br /&gt;
Tabelle lieferfirma&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+----------------+--------+&lt;br /&gt;
|id|firma &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |verlass |&lt;br /&gt;
+--+----------------+--------+&lt;br /&gt;
| 1|SupiTrans &amp;nbsp; &amp;nbsp; &amp;nbsp; |hoch &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 2|HyperCompoGlobal|mittel &amp;nbsp;|&lt;br /&gt;
| 3|SuperMegaNet &amp;nbsp; &amp;nbsp;|saumäßig|&lt;br /&gt;
| 4|Post AG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |saumäßig|&lt;br /&gt;
+--+----------------+--------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
An dieser Stelle speichern wir die Firma und ihre Verlässlichkeit ab.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Tabelle auswahl&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+-------+&lt;br /&gt;
|id|auswahl|&lt;br /&gt;
+--+-------+&lt;br /&gt;
| 1|1 &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 2|1 &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 3|2 &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 4|3 &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 5|3 &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 6|4 &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+--+-------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Die ID der Tabelle Auswahl bezieht sich auf die ID der Tabelle Lieferzeit und der Wert der Auswahl auf die entsprechende Firma.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;hint&quot;&gt;&lt;div class=&quot;hint-title&quot;&gt;Merksatz 3. Normalform&lt;/div&gt;&lt;div class=&quot;hint-text&quot;&gt;In der 3. Normalform darf es keine transitiven Abhängigkeiten geben.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-1/&quot;&gt;zu Teil 1 Normalisierung &lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-2-die-1-Normalform/&quot;&gt;zu Teil 2 1. Normalform&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-3-die-2-Normalform/&quot;&gt;zu Teil 3 2. Normalform&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-5-Eine-normalisierte-Datenbank/&quot;&gt;zu Teil 5 Eine normalisierte Datenbank&lt;/a&gt;</description>
            <pubDate>Sun, 27 Feb 2011 10:32:40 +0100</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-3-die-2-Normalform/#comments</comments>
            <title>Normalisierung Teil 3 die 2. Normalform</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-3-die-2-Normalform/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-3-die-2-Normalform/</guid>
            <category>Allgemeines</category>
            <description>&lt;h2&gt;1. Bedingung&lt;/h2&gt;&lt;br /&gt;
Eine Datenbank/Relation befindet sich dann in der zweiten Normalform (2NF), wenn die erste Normalform erfüllt ist und für jeden Primärschlüssel eindeutige Attributwerte vorhanden sind. Schauen wir uns mal an, was von unserer ursprünglichen Tabelle noch übrig geblieben ist.&lt;br /&gt;
&lt;h2&gt;2. Unser Tabelle Bestellung&lt;/h2&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+------------+------+------+------+&lt;br /&gt;
|id|produkt &amp;nbsp; &amp;nbsp; |preis |nummer|anzahl|&lt;br /&gt;
+--+------------+------+------+------+&lt;br /&gt;
| 1|Schlagbohrer|199.95|1000-1|1 &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| 2|Zement &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;5.95|1000-2|5 &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| 3|Kneifzange &amp;nbsp;| 19.95|1000-3|3 &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| 4|Brecheisen &amp;nbsp;| 49.95|1000-4|7 &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| 5|Hammer &amp;nbsp; &amp;nbsp; &amp;nbsp;| 19.95|1000-5|4 &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| 6|Zement &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;5.95|1000-2|9 &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| 7|Brecheisen &amp;nbsp;| 49.95|1000-4|2 &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+--+------------+------+------+------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Sofort erkennt das geübte Auge, dass wir bestimmte Artikel (Zement, Brecheisen) doppelt eingetragen haben. Damit verstoßen wir gegen die zweite Normalform. Also gliedern wir die Produkte in eine separate Tabelle aus. Damit können wir jedem Primärschlüssel eindeutige Attribute zuordnen.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Tabelle Produkt&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+------------+------+------+&lt;br /&gt;
|id|produkt &amp;nbsp; &amp;nbsp; |preis |nummer|&lt;br /&gt;
+--+------------+------+------+&lt;br /&gt;
| 1|Schlagbohrer|199.95|1000-1|&lt;br /&gt;
| 2|Zement &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;5.95|1000-2|&lt;br /&gt;
| 3|Kneifzange &amp;nbsp;| 19.95|1000-3|&lt;br /&gt;
| 4|Brecheisen &amp;nbsp;| 49.95|1000-4|&lt;br /&gt;
| 5|Hammer &amp;nbsp; &amp;nbsp; &amp;nbsp;| 19.95|1000-5|&lt;br /&gt;
+--+------------+------+------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;3. Redundanzfreiheit&lt;/h2&gt;&lt;br /&gt;
Der ein oder andere wird jetzt einwenden, dass wir aber doppelte Preise haben, also bei der Kneifzange und beim Hammer. Das stimmt, aber ist es sinnvoll, die Preise noch mal in eine eigene Tabelle zu packen? Bei 500 Produkten mit 400 verschiedenen Preisen? Was passiert zum Beispiel, wenn der Schlagbohrer auf einmal 209,95 kostet. Dann müssten wir erst die Tabelle Preise durchwühlen, sehen, ob der entsprechende Eintrag vorhanden, wenn ja, neue Verknüpfung, wenn nein, Preis anlegen und dann verknüpfen. Und erst die Abfragen. Redundanzfreiheit bedeutet auch immer ein Verlust von Geschwindigkeit.&lt;br /&gt;
&lt;h2&gt;4. Denormalisierung&lt;/h2&gt;&lt;br /&gt;
Das ist ein gebräuchliches Mittel, um Performance-Verbesserungen bei der Datenbank zu erzielen. Man nimmt dabei bewusst Redundanzen in Kauf. Aber wann tut man das? Gute Frage, da weiß ich selber keine genaue Antwort. Ich glaube, dass es eine Frage der Erfahrung ist. Im Laufe der Zeit entwickelt man genug Routine, um das zu entscheiden. Bei Produktpreisen oder zum Beispiel beim Bestelldatum kann man aber getrost solche Redundanzen in Kauf nehmen.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;hint&quot;&gt;&lt;div class=&quot;hint-title&quot;&gt;Merksatz 2. Normalform&lt;/div&gt;&lt;div class=&quot;hint-text&quot;&gt;Die zu speichernden Daten sind so in Tabellen aufzuteilen, dass jedes Nichtschlüsselattribut voll von einem Primärschlüssel abhängig ist.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-1/&quot;&gt;zu Teil 1 Normalisierung &lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-2-die-1-Normalform/&quot;&gt;zu Teil 2 1. Normalform&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-4-die-3-Normalform/&quot;&gt;zu Teil 4 3. Normalform&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-5-Eine-normalisierte-Datenbank/&quot;&gt;zu Teil 5 Eine normalisierte Datenbank&lt;/a&gt;</description>
            <pubDate>Sun, 27 Feb 2011 10:28:56 +0100</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-2-die-1-Normalform/#comments</comments>
            <title>Normalisierung Teil 2 die 1. Normalform</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-2-die-1-Normalform/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-2-die-1-Normalform/</guid>
            <category>Allgemeines</category>
            <description>&lt;h2&gt;1. Bedingung&lt;/h2&gt;&lt;br /&gt;
Eine Datenbank (genauer gesagt Relation) befindet sich in der ersten Normalform (1NF), wenn in keinem Feld innerhalb der Tabellen mehrere Werte eingetragen sind.&lt;br /&gt;
&lt;h2&gt;2. Unser Beispiel&lt;/h2&gt;&lt;br /&gt;
Dort haben wir ein Feld telefon_fax, das mehrere Einträge enthält. Das ist ein Verstoß gegen die 1NF. Dasselbe gilt für die Adresse und den Hersteller. Das Prinzip nennt sich &amp;quot;atomar&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Atomare Attributwerte&lt;/strong&gt;&lt;br /&gt;
Wow, klingt wie eine Mischung aus thermonuklearem Krieg und erster Vorlesung &amp;quot;Einführung in die theoretische Mathematik für Informatiker&amp;quot;. Die Erklärung selber ist sehr einfach. Atomar bedeutet in diesem Zusammenhang einzigartig und Attributwerte sind die Daten, die einzelne Spalten einer Tabelle enthalten. Es werden also z.B. nicht die Straße und der Ort in einem Feld gespeichert, sondern in zweien.&lt;br /&gt;
&lt;h2&gt;3. Erste Verbesserung&lt;/h2&gt;&lt;br /&gt;
Wir müssen die Adressdaten der Kunden und Hersteller in separate Tabellen auslagern und in entsprechenden Feldern verteilen. Dabei bekommt jeder Datensatz wieder eine eindeutige ID (Identifier).&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Tabelle Kunde&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+------------+-------+-------+------------+-----+------------+&lt;br /&gt;
|id|doktor &amp;nbsp; &amp;nbsp; &amp;nbsp;|telefon|fax &amp;nbsp; &amp;nbsp;|strasse &amp;nbsp; &amp;nbsp; |plz &amp;nbsp;|ort &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+--+------------+---------------+------------+-----+------------+&lt;br /&gt;
| 1|Blutgesicht |123-550|123-551|Kariesweg 1 |12345|Zahnstein &amp;nbsp; |&lt;br /&gt;
| 2|Quälstein &amp;nbsp; |456-777|456-778|Lochpfad 23 |23458|Schmerzstadt|&lt;br /&gt;
| 3|Eisenfaust &amp;nbsp;|789-250|789-251|Zahnwurzel 3|87454|Dolomostadt |&lt;br /&gt;
| 4|Rostzange &amp;nbsp; |234-100|234-101|Peinweg 5 &amp;nbsp; |74512|Reissheim &amp;nbsp; |&lt;br /&gt;
| 5|Frankenstein|567-200|567-201|Am Dom 5 &amp;nbsp; &amp;nbsp;|50670|Köln &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+--+------------+-------+-------+------------+-----+------------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Tabelle Hersteller&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+-----------+-------+-------+------------+-----+------------+&lt;br /&gt;
|id|zulieferer |telefon|fax &amp;nbsp; &amp;nbsp;|strasse &amp;nbsp; &amp;nbsp; |plz &amp;nbsp;|ort &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+--+-----------+---------------+------------+-----+------------+&lt;br /&gt;
| 1|Hilti &amp;nbsp; &amp;nbsp; &amp;nbsp;|111-345|111-346|Bohrweg 25 &amp;nbsp;|70001|Keine Ahnung|&lt;br /&gt;
| 2|Hoch &amp;amp; Tief|211-100|211-110|Schlammweg 2|50041|Wasweissich |&lt;br /&gt;
| 3|Eisen-Karl |504-561|504-562|Kruppstr. 57|43254|Bochum &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| 4|Stahl AG &amp;nbsp; |600-400|600-410|Alfred-Weg 4|47847|Dortmund &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+--+-----------+-------+-------+------------+-----+------------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h2&gt;4. Ein wichtiger Hinweis&lt;/h2&gt;&lt;br /&gt;
Dies ist ein elementares Prinzip der Normalisierung und sollte daher ständig(!) beachtet werden.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;hint&quot;&gt;&lt;div class=&quot;hint-title&quot;&gt;Merksatz 1. Normalform&lt;/div&gt;&lt;div class=&quot;hint-text&quot;&gt;Die erste Normalform legt fest, dass Tabellen nur aus atomaren Werten bestehen und es keine Wiederholgruppen geben darf.&lt;/div&gt;&lt;/div&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-1/&quot;&gt;zu Teil 1 Normalisierung &lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-3-die-2-Normalform/&quot;&gt;zu Teil 3 2. Normalform&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-4-die-3-Normalform/&quot;&gt;zu Teil 4 3. Normalform&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-5-Eine-normalisierte-Datenbank/&quot;&gt;zu Teil 5 Eine normalisierte Datenbank&lt;/a&gt;</description>
            <pubDate>Sun, 27 Feb 2011 10:25:48 +0100</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-1/#comments</comments>
            <title>Normalisierung Teil 1</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-1/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-1/</guid>
            <category>Allgemeines</category>
            <description>&lt;h2&gt;1. Datenbankdesign&lt;/h2&gt;&lt;br /&gt;
Bevor wir uns an gutes heranwagen, will ich erst mal zeigen, wie man es nicht macht und warum. Nehmen wir mal folgende Situation an. Wir sind ein Zwischenhändler, der Zahnärzte mit allem ausstattet, was die brauchen, um uns zu foltern. Wie ich auf diese Schnapsidee gekommen bin? Ganz einfach, ich war mal bei einer Zahnärztin, und die klagte mir, dass sie nicht mit Microsoft Access klarkommt. Ich habe dann auf der Fahrt zur Arbeit überlegt, wie man das am Besten erklären kann. Das Ergebnis seht ihr hier.&lt;br /&gt;
&lt;h2&gt;2. Entwurf&lt;/h2&gt;&lt;br /&gt;
Man könnte nun auf die Idee kommen, alle Bestellungen, so wie man es normalerweise aus Excel gewöhnt ist, einfach in eine Tabelle zu packen. Die Spalten adresse und hersteller mußte ich aus Platzgründen nach unten stellen. Denkt euch einfach, dass sie neben der Spalte telefon_fax stehen. Natürlich sind die Angaben völliger Blödsinn.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Tabelle Bestellung&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--+------------+------+--------+------+----------+---------------+&lt;br /&gt;
|id|produkt &amp;nbsp; &amp;nbsp; |preis &amp;nbsp;|nummer |anzahl|doktor &amp;nbsp; |telefon_fax &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+--+------------+------+--------+------+----------+---------------+&lt;br /&gt;
| 1|Schlagbohrer|199.95|1000-1|1 &amp;nbsp; &amp;nbsp; |Blutgesicht |123-550,123-551|&lt;br /&gt;
| 2|Zement &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;5.95|1000-2|5 &amp;nbsp; &amp;nbsp; |Quälstein &amp;nbsp; |456-777,456-778|&lt;br /&gt;
| 3|Kneifzange &amp;nbsp;| 19.95|1000-3|3 &amp;nbsp; &amp;nbsp; |Eisenfaust &amp;nbsp;|789-250,789-251|&lt;br /&gt;
| 4|Brecheisen &amp;nbsp;| 49.95|1000-4|7 &amp;nbsp; &amp;nbsp; |Rostzange &amp;nbsp; |234-100,234-101|&lt;br /&gt;
| 5|Hammer &amp;nbsp; &amp;nbsp; &amp;nbsp;| 19.95|1000-5|4 &amp;nbsp; &amp;nbsp; |Frankenstein|567-200.567-201|&lt;br /&gt;
| 6|Zement &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;5.95|1000-2|9 &amp;nbsp; &amp;nbsp; |Eisenfaust &amp;nbsp;|789-250,789-251|&lt;br /&gt;
| 7|Brecheisen &amp;nbsp;| 49.95|1000-4|2 &amp;nbsp; &amp;nbsp; |Blutgesicht |123-550,123-551|&lt;br /&gt;
+--+------------+------+------+------+------------+---------------+&lt;br /&gt;
+-------------------------------+-----------------------+&lt;br /&gt;
|adresse &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|hersteller &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+-------------------------------+-----------------------+&lt;br /&gt;
|Kariesweg 1, 12345 Zahnstein &amp;nbsp; |Hilti, Adresse... &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
|Lochpfad 23, 23458 Schmerzstadt|Hoch &amp;amp; Tief, Adresse...|&lt;br /&gt;
|Zahnwurzel 3, 87454 Dolomostadt|Eisen-Karl, Adresse... |&lt;br /&gt;
|Peinweg 5, 74512 Reissheim &amp;nbsp; &amp;nbsp; |Eisen-Karl, Adresse... |&lt;br /&gt;
|Am Dom 5, 50670 Köln &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |Stahl AG, Adresse... &amp;nbsp; |&lt;br /&gt;
|Zahnwurzel 3, 87454 Dolomostadt|Hoch &amp;amp; Tief, Adresse...|&lt;br /&gt;
|Kariesweg 1, 12345 Zahnstein &amp;nbsp; |Eisen-Karl, Adresse... |&lt;br /&gt;
+-------------------------------+-----------------------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h2&gt;3. Problematik&lt;/h2&gt;&lt;br /&gt;
Allerdings fällt sofort etwas auf. Wir haben etliche doppelte Einträge und das kann zu großen Problemen führen. Im Moment sieht alles noch sehr übersichtlich aus. Aber was passiert, wenn wir 10.000 Einträge haben?&lt;br /&gt;
Nehmen wir mal an, Dr. Frankenstein ginge wieder seiner ursprünglichen Profession nach und würde Menschen zusammenbauen. Er fiele als unser Kunde weg, und würde nur noch als Karteileiche in unserer Datenbank unnötig Speicherplatz belegen. Oder die Einkaufspreise steigen. Oder Eisen-Karl kann nicht mehr liefern, da er pleite ist. Und wo zum Teufel kommen eigentlich die Produkte her? Wie kann jemand etwas bestellen, wenn das nicht irgendwo zentral gespeichert ist?&lt;br /&gt;
Ihr habt also schon gemerkt, dass unser erster Entwurf ziemlicher Müll ist, da wir bei Änderungen immer wieder vor großen Problemen stehen. Gottlob stellen uns die Mathematik und Informatik ein Werkzeug zur Verfügung, mit der wir unsere Datenbanken so aufbauen, dass sie pflegeleicht und gut wartbar sind. Das nennt sich Normalisierung. Allerdings müssen wir vorher noch ein paar Begriffe klären.&lt;br /&gt;
&lt;h2&gt;4. Redundanzen, Anomalien, Inkonsistenzen&lt;/h2&gt;&lt;br /&gt;
Hinter diesen Begriffen verbirgt sich alles, was den logischen Aufbau unserer Datenbank gefährden könnte. Einen ersten Einblick in die Problematik habe ich euch schon oben gegeben.&lt;br /&gt;
Redundanzen, Redundanzfreiheit&lt;br /&gt;
Redundanzen sind einfach ausgedrückt, doppelt gespeicherte Informationen. In unserem ersten Entwurf haben wird die zuhauf, bei den Produkten, Preisen, Doktoren oder Adressen. Redundanzfreiheit ist also nur das Gegenteil von Redundanz, also die Vermeidung doppelter Einträge. Die Vorteile liegen auf der Hand:&lt;br /&gt;
geringerer Speicherbedarf&lt;br /&gt;
Erhöhung der Wartbarkeit&lt;br /&gt;
Vermeidung von Inkonsistenzen und Anomalien&lt;br /&gt;
Inkonsistenzen, Anomalien&lt;br /&gt;
Sind widersprüchliche Daten oder logische Brüche innerhalb eine Datenbank. Sie treten sehr oft auf, wenn man zum Beispiel Änderungen an den Inhalten vornimmt und gewisse Relationen(!) vergisst.&lt;br /&gt;
&lt;h2&gt;5. Normalisierung&lt;/h2&gt;&lt;br /&gt;
Dies ist eine Sammlung von Regeln, die eingehalten werden sollten, um obige Probleme zu vermeiden. Sie gliedert sich in fünf Normalformen plus vier Sonderformen. Für normale Anwendungen (und die Einführung) reichen die ersten drei Normalformen erst mal aus.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-2-die-1-Normalform/&quot;&gt;zu Teil 2 1. Normalform&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-3-die-2-Normalform/&quot;&gt;zu Teil 3 2. Normalform&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-4-die-3-Normalform/&quot;&gt;zu Teil 4 3. Normalform&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/Normalisierung-Teil-5-Eine-normalisierte-Datenbank/&quot;&gt;zu Teil 5 Eine normalisierte Datenbank&lt;/a&gt;</description>
            <pubDate>Sun, 27 Feb 2011 01:42:34 +0100</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Joins-in-MySQL-Teil-2-die-Joinarten/#comments</comments>
            <title>Joins in MySQL Teil 2 die Joinarten</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Joins-in-MySQL-Teil-2-die-Joinarten/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Joins-in-MySQL-Teil-2-die-Joinarten/</guid>
            <category>MySQL</category>
            <description>So hier Teil 2&lt;br /&gt;
&lt;h2&gt;Inner Join&lt;/h2&gt;&lt;br /&gt;
&lt;h3&gt;1. Das Prinzip &lt;/h3&gt;&lt;br /&gt;
Der Inner Join ist praktisch identisch mit dem Prinzip des Equi- bzw Non-Equi-Joins. Dabei &lt;br /&gt;
wird nach identischen Spalteneinträgen innerhalb mehrerer Tabellen gesucht. &amp;nbsp;&lt;br /&gt;
Unsere Tabellen &lt;br /&gt;
Hier greifen wir mal in verkürzter Form auf unsere normalisierte Datenbank zurück und &lt;br /&gt;
nehmen als Beispiel zwei Tabellen, die ich der Übersichtlichkeit halber auf ein Minimum &lt;br /&gt;
reduziert habe. &lt;br /&gt;
 &lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;Tabelle bestellung &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tabelle produkt &lt;br /&gt;
+----+--------+-------+ &amp;nbsp; +----+-------------+&lt;br /&gt;
| id | anzahl | pr_id | &amp;nbsp; | id | produkt &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
+----+--------+-------+ &amp;nbsp; +----+-------------+&lt;br /&gt;
| &amp;nbsp;1 | &amp;nbsp; &amp;nbsp; &amp;nbsp;1 | &amp;nbsp; &amp;nbsp; 1 | &amp;nbsp; | &amp;nbsp;1 | Schlagbohrer| &lt;br /&gt;
| &amp;nbsp;2 | &amp;nbsp; &amp;nbsp; &amp;nbsp;5 | &amp;nbsp; &amp;nbsp; 2 | &amp;nbsp; | &amp;nbsp;2 | Zement &amp;nbsp; &amp;nbsp; &amp;nbsp;| &lt;br /&gt;
| &amp;nbsp;3 | &amp;nbsp; &amp;nbsp; &amp;nbsp;3 | &amp;nbsp; &amp;nbsp; 3 | &amp;nbsp; | &amp;nbsp;3 | Kneifzange &amp;nbsp;| &lt;br /&gt;
| &amp;nbsp;4 | &amp;nbsp; &amp;nbsp; &amp;nbsp;7 | &amp;nbsp; &amp;nbsp; 4 | &amp;nbsp; | &amp;nbsp;4 | Brecheisen &amp;nbsp;| &lt;br /&gt;
| &amp;nbsp;5 | &amp;nbsp; &amp;nbsp; &amp;nbsp;4 | &amp;nbsp; &amp;nbsp; 5 | &amp;nbsp; | &amp;nbsp;5 | Hammer &amp;nbsp; &amp;nbsp; &amp;nbsp;| &lt;br /&gt;
| &amp;nbsp;6 | &amp;nbsp; &amp;nbsp; &amp;nbsp;9 | &amp;nbsp; &amp;nbsp; 2 | &amp;nbsp; | &amp;nbsp;6 | bla &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
| &amp;nbsp;7 | &amp;nbsp; &amp;nbsp; &amp;nbsp;2 | &amp;nbsp; &amp;nbsp; 4 | &amp;nbsp; +----+-------------+ &lt;br /&gt;
+----+--------+-------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Wenn wir nun die jeweilige Anzahl an verkauften Produkten und deren Namen auflisten &lt;br /&gt;
wollen, so gibt es zwei Möglichkeiten, die sich zwar in der Abfrage unterscheiden, aber &lt;br /&gt;
dasselbe Resultat liefern. &lt;br /&gt;
 &lt;br /&gt;
&lt;h3&gt;2. Möglichkeit 1 &lt;/h3&gt;&lt;br /&gt;
&lt;div&gt;SQL CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;sql&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SUM&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;b&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;anzahl&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;produkt &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;bestellung b&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;produkt p &amp;nbsp; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;WHERE&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;b&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;pr_id &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;GROUP&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;BY&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;produkt&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;strong&gt;Erläuterung&lt;/strong&gt; &lt;br /&gt;
Die Verknüpfung der einzelnen Datensätze aus den zwei Tabellen läuft über die WHERE Klausel b.pr_id = p.id. Hier taucht zwar kein JOIN auf, es ist aber einer. Ach ja, das &lt;br /&gt;
GROUP BY wird wegen der SUM-Funktion benötigt, weil das so vorgeschrieben ist.&lt;br /&gt;
 &amp;nbsp;&lt;br /&gt;
&lt;h3&gt;3. Möglichkeit 2 &lt;/h3&gt;&lt;br /&gt;
&lt;div&gt;SQL CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;sql&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SUM&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;b&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;anzahl&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;produkt &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;bestellung b &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;INNER&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;JOIN&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;produkt p &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;ON&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;b&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;pr_id &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;GROUP&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;BY&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;produkt&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;strong&gt;Erläuterung&lt;/strong&gt; &lt;br /&gt;
Hier arbeiten wir nun mit einem &amp;quot;echten&amp;quot; Inner Join. Dabei legt man bestellung als &lt;br /&gt;
&amp;quot;Suchtabelle&amp;quot; fest und mittels INNER JOIN produkt p ON (b.pr_id = p.id) verknüpft &lt;br /&gt;
man sie mit der Tabelle produkt. In diesem Fall (wie auch in obigem) ginge es natürlich &lt;br /&gt;
auch anders herum: &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;SQL CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;sql&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SUM&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;b&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;anzahl&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;produkt &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;produkt p &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;INNER&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;JOIN&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;bestellung b &amp;nbsp;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;ON&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;b&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;pr_id &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;GROUP&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;BY&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;produkt&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;4. Das Ergebnis &lt;/h3&gt;&lt;br /&gt;
Ist in allen Fällen identisch und so, wie wir es gewollt haben. Bei einem INNER JOIN ist es &lt;br /&gt;
somit auch unerheblich, welche Tabelle man wie mit einer anderen verbindet. Die Beziehung &lt;br /&gt;
muss nur EINDEUTIG sein. &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--------------+--------------+&lt;br /&gt;
| SUM(b.anzahl)| produkt &amp;nbsp; &amp;nbsp; &amp;nbsp;| &lt;br /&gt;
+--------------+--------------+&lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9| Brecheisen &amp;nbsp; | &lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4| Hammer &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3| Kneifzange &amp;nbsp; | &lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1| Schlagbohrer | &lt;br /&gt;
| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14| Zement &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
+--------------+--------------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h2&gt;Left/Right Join&lt;/h2&gt;&lt;br /&gt;
&lt;h3&gt;1. Der feine Unterschied &lt;/h3&gt;&lt;br /&gt;
Während ein INNER JOIN immer ein genaues Kreuzprodukt ergibt, so verhält es sich in &lt;br /&gt;
diesem Fall ein wenig anders. Dazu schauen wir uns mal die folgenden Tabellen an: &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;Tabelle 'hersteller' &amp;nbsp; &amp;nbsp;Tabelle 'produkt' &lt;br /&gt;
+----+--------------+ &amp;nbsp; +---+--------------+--------+&lt;br /&gt;
| id | zulieferer &amp;nbsp; | &amp;nbsp; |id | produkt &amp;nbsp; &amp;nbsp; &amp;nbsp;|hs_link | &lt;br /&gt;
+----+--------------+ &amp;nbsp; +---+--------------+--------+&lt;br /&gt;
| &amp;nbsp;1 | Hilti bla &amp;nbsp; &amp;nbsp;| &amp;nbsp; | 1 | Schlagbohrer | &amp;nbsp; &amp;nbsp; &amp;nbsp;1 | &lt;br /&gt;
| &amp;nbsp;2 | Hoch &amp;amp; Tief &amp;nbsp;| &amp;nbsp; | 2 | Zement &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;2 | &lt;br /&gt;
| &amp;nbsp;3 | Eisen-Karl &amp;nbsp; | &amp;nbsp; | 3 | Kneifzange &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;3 | &lt;br /&gt;
| &amp;nbsp;4 | Stahl AG &amp;nbsp; &amp;nbsp; | &amp;nbsp; | 4 | Brecheisen &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;3 | &amp;nbsp;&lt;br /&gt;
| &amp;nbsp;5 | Gähn &amp;amp; Söhne | &amp;nbsp; | 5 | Hammer &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp;4 | &lt;br /&gt;
+----+--------------+ &amp;nbsp; +---+--------------+--------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Die Verknüpfung erfolgt über die Spalte hs_link in der Tabelle produkt wo wir die IDs aus &lt;br /&gt;
der der Tabelle hersteller abspeichern. Wie das geübte Auge sofort erkennt, gibt es &lt;br /&gt;
einen Hersteller, für den offenbar kein Produkt existiert. Wenn wir jetzt alle(!) Hersteller &lt;br /&gt;
inklusive ihrer Machwerke auflisten wollen, so gibt es zwei Möglichkeiten.&lt;br /&gt;
 &amp;nbsp;&lt;br /&gt;
&lt;h3&gt;2. LEFT JOIN&lt;/h3&gt;&lt;br /&gt;
&lt;div&gt;SQL CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;sql&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;h&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;zulieferer&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;produkt &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;hersteller h &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;LEFT&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;JOIN&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;produkt p &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;ON&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;h&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;hs_link&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;strong&gt;Erläuterung&lt;/strong&gt;&lt;br /&gt;
Bei einem LEFT JOIN werden alle Datensätze der &amp;quot;Haupttabelle&amp;quot; hersteller mit denen &lt;br /&gt;
der Tabelle produkt &amp;quot;links herum&amp;quot; (LEFT JOIN) verknüpft. Das bedeutet, dass alle &lt;br /&gt;
Datensätze der &amp;quot;linken&amp;quot; Tabelle auf jeden Fall angezeigt werden. Gibt es in der &amp;quot;rechten&amp;quot; &lt;br /&gt;
Tabelle keine entsprechende Relation, so wird der fehlende Teil der Spalte produkt einfach &lt;br /&gt;
mit einer NULL + aufgefüllt. Und das Ergebnis sieht so aus: &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--------------+--------------+&lt;br /&gt;
| zulieferer &amp;nbsp; | produkt &amp;nbsp; &amp;nbsp; &amp;nbsp;| &lt;br /&gt;
+--------------+--------------+&lt;br /&gt;
| Hilti &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Schlagbohrer | &lt;br /&gt;
| Hoch &amp;amp; Tief &amp;nbsp;| Zement &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
| Eisen-Karl &amp;nbsp; | Kneifzange &amp;nbsp; | &lt;br /&gt;
| Eisen-Karl &amp;nbsp; | Brecheisen &amp;nbsp; | &lt;br /&gt;
| Stahl AG &amp;nbsp; &amp;nbsp; | Hammer &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
| Gähn &amp;amp; Söhne | NULL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
+--------------+--------------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;3. RIGHT JOIN&lt;/h3&gt;&lt;br /&gt;
&lt;div&gt;SQL CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;sql&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;h&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;zulieferer&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;produkt &amp;nbsp; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;produkt p &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;RIGHT&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;JOIN&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;hersteller h &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;ON&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;h&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;hs_link&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Erläuterung&lt;/strong&gt; &lt;br /&gt;
Hier läuft es eigentlich nur anders herum. Hier wird die &amp;quot;Haupttabelle&amp;quot; produkt &amp;quot;rechts &lt;br /&gt;
herum&amp;quot; mit der Tabelle hersteller verbunden. Hier werden also alle Datensätze der &lt;br /&gt;
rechten Tabelle angezeigt und fehlende der linken mit NULL ausgefüllt.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Full Outer Join&lt;/h2&gt;&lt;br /&gt;
&lt;h3&gt;1. Erklärung&lt;/h3&gt; &lt;br /&gt;
Bei einem Full Outer Join handelt es sich um eine Kombination aus einem Left und einem &lt;br /&gt;
Right Join. Das Ziel dabei ist, Datensätze zu verknüpfen. Wenn es aber keine Beziehung &lt;br /&gt;
gibt, so sollen die entsprechenden Felder BEIDER Tabellen mit einem NULL gefüllt werden. &amp;nbsp;&lt;br /&gt;
Dazu schauen wir uns mal die folgende Tabelle an. Achtet mal auf mögliche Verbindungen, &lt;br /&gt;
dann fällt euch auf, dass wir zwei Hersteller ohne Produkt und ein Produkt ohne Hersteller &lt;br /&gt;
haben. &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;Tabelle 'hersteller' &amp;nbsp; &amp;nbsp;Tabelle 'produkt' &lt;br /&gt;
+----+--------------+ &amp;nbsp; +----+--------------+-------+&lt;br /&gt;
| id | zulieferer &amp;nbsp; | &amp;nbsp; | id | produkt &amp;nbsp; &amp;nbsp; &amp;nbsp;|hs_link| &lt;br /&gt;
+----+--------------+ &amp;nbsp; +----+--------------+-------+&lt;br /&gt;
| &amp;nbsp;1 | Hilti &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; | &amp;nbsp;1 | Schlagbohrer | &amp;nbsp; &amp;nbsp; 1 | &lt;br /&gt;
| &amp;nbsp;2 | Hoch &amp;amp; Tief &amp;nbsp;| &amp;nbsp; | &amp;nbsp;2 | Zement &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; 2 | &lt;br /&gt;
| &amp;nbsp;3 | Eisen-Karl &amp;nbsp; | &amp;nbsp; | &amp;nbsp;3 | Kneifzange &amp;nbsp; | &amp;nbsp; &amp;nbsp; 3 | &lt;br /&gt;
| &amp;nbsp;4 | Stahl AG &amp;nbsp; &amp;nbsp; | &amp;nbsp; | &amp;nbsp;4 | Brecheisen &amp;nbsp; | &amp;nbsp; &amp;nbsp; 3 | &amp;nbsp;&lt;br /&gt;
| &amp;nbsp;5 | Gähn &amp;amp; Söhne | &amp;nbsp; | &amp;nbsp;5 | Hammer &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; 7 | &lt;br /&gt;
+----+--------------+ &amp;nbsp; +----+--------------+-------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;2. Die Abfrage &lt;/h3&gt;&lt;br /&gt;
Leider unterstützt MySQL kein FULL OUTER JOIN, daher muss man hier ein wenig tricksen, &lt;br /&gt;
indem man per UNION das Ergebnis zweier Abfragen miteinander verknüpft. &amp;nbsp;&lt;br /&gt;
Hier konzentrieren wir uns nur auf das Wesentliche. &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;SQL CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;sql&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;h&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;zulieferer&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;produkt &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;hersteller h &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;LEFT&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;JOIN&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;produkt p &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;ON&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;h&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;hs_link&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;UNION&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;h&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;zulieferer&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;produkt &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;hersteller h &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;RIGHT&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;JOIN&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;produkt p &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;ON&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;h&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id &lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt; p&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;hs_link&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;strong&gt;Erläuterung&lt;/strong&gt; &lt;br /&gt;
Zunächst nutzen wir den Left-Query aus dem vorherigen Abschnitt (SELECT ... FROM &lt;br /&gt;
 LEFT JOIN ...). Damit holen wir uns alle Hersteller und, falls vorhanden, deren...&lt;br /&gt;
Produkt. Wenn es Letzteres nicht gibt, so wird die Spalte produkt mit NULL aufgefüllt. &amp;nbsp;&lt;br /&gt;
Anschließend verbinden wir die erste Abfrage per UNION mit der zweiten. Dort drehen wir &lt;br /&gt;
den Spieß einfach um und holen uns auch noch die Produkte, zu denen es keinen Hersteller &lt;br /&gt;
gibt. &amp;nbsp;&lt;br /&gt;
&lt;h3&gt;3. Das Ergebnis &lt;/h3&gt;&lt;br /&gt;
sieht dann so aus. Ich hoffe, ihr habt das Prinzip verstanden ...&lt;br /&gt;
 &amp;nbsp;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;+--------------+--------------+&lt;br /&gt;
| zulieferer &amp;nbsp; | produkt &amp;nbsp; &amp;nbsp; &amp;nbsp;| &lt;br /&gt;
+--------------+--------------+&lt;br /&gt;
| Hilti &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Schlagbohrer | &lt;br /&gt;
| Hoch &amp;amp; Tief &amp;nbsp;| Zement &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
| Eisen-Karl &amp;nbsp; | Kneifzange &amp;nbsp; | &lt;br /&gt;
| Eisen-Karl &amp;nbsp; | Brecheisen &amp;nbsp; | &lt;br /&gt;
| Stahl AG &amp;nbsp; &amp;nbsp; | NULL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
| Gähn &amp;amp; Söhne | NULL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
| NULL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Hammer &amp;nbsp; &amp;nbsp; &amp;nbsp; | &lt;br /&gt;
+--------------+--------------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;4. Fazit &lt;/h3&gt;&lt;br /&gt;
Da das Thema Joins doch ziemlich komplex ist, hoffe ich das ich euch &lt;br /&gt;
mit den grundsätzlichen Dingen vertraut machen konnte. Und wenn man das Prinzip verstanden hat, &lt;br /&gt;
so kommt der Rest (fast) von allein.</description>
            <pubDate>Thu, 17 Feb 2011 14:10:03 +0100</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Joins-in-MySQL-Teil-1-Grundlegendes-und-die-Sache-mit-dem-Alias/#comments</comments>
            <title>Joins in MySQL Teil 1 Grundlegendes und die Sache mit dem Alias</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Joins-in-MySQL-Teil-1-Grundlegendes-und-die-Sache-mit-dem-Alias/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Joins-in-MySQL-Teil-1-Grundlegendes-und-die-Sache-mit-dem-Alias/</guid>
            <category>MySQL</category>
            <description>So wie versprochen hier ein bisschen was zu den Joins&lt;br /&gt;
&lt;h2&gt;Grundlegendes&lt;/h2&gt;&lt;br /&gt;
&lt;h3&gt;1. Mathematik&lt;/h3&gt;&lt;br /&gt;
SQL basiert auf der relationalen Algebra. Und darum werde &lt;br /&gt;
ich euch nun mit ein paar Prinzipien vertraut machen. Aber keine Angst, &lt;br /&gt;
dass ich euch mit irgendwelchen Formeln quälen &lt;br /&gt;
werde. Nein, ich werde versuchen, dass so einfach wie möglich zu erklären. &lt;br /&gt;
 &lt;br /&gt;
&lt;strong&gt;Grundsätzliche Unterscheidung &lt;/strong&gt;&lt;br /&gt;
EINFACH gesagt unterscheidet man drei verschiedene Typen von Joins. Dabei geht es um &lt;br /&gt;
die Art und Weise, wie die Spalten von mehreren Tabellen verknüpft werden. &amp;nbsp;&lt;br /&gt;
&lt;h3&gt;2. Einfacher Join&lt;/h3&gt; &lt;br /&gt;
Dabei wird ein so genanntes kartesisches Produkt gebildet. Das bedeutet, dass jede Zeile &lt;br /&gt;
der Tabelle blubb mit jeder Zeile von blubber verknüpft wird. &lt;br /&gt;
 &lt;br /&gt;
&lt;div&gt;SQL CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;sql&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; blubb&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; blubber;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;'blubb' &amp;nbsp; &amp;nbsp;'blubber' &amp;nbsp; &amp;nbsp;Ergebnis &lt;br /&gt;
+--+----+ &amp;nbsp;+--+----+ &amp;nbsp; &amp;nbsp;+--+----+ &amp;nbsp;+--+----+&lt;br /&gt;
|id|text| &amp;nbsp;|id|text| &amp;nbsp; &amp;nbsp;|id|text| &amp;nbsp;|id|text| &lt;br /&gt;
+--+----+ &amp;nbsp;+--+----+ &amp;nbsp; &amp;nbsp;+--+----+ &amp;nbsp;+--+----+&lt;br /&gt;
| 1|a &amp;nbsp; | &amp;nbsp;| 1|x &amp;nbsp; | &amp;nbsp; &amp;nbsp;| 1|a &amp;nbsp; | &amp;nbsp;| 1|x &amp;nbsp; | &lt;br /&gt;
| 2|b &amp;nbsp; | &amp;nbsp;| 2|y &amp;nbsp; | &amp;nbsp; &amp;nbsp;| 1|a &amp;nbsp; | &amp;nbsp;| 2|y &amp;nbsp; | &amp;nbsp;&lt;br /&gt;
+--+----+ &amp;nbsp;+--+----+ &amp;nbsp; &amp;nbsp;| 2|b &amp;nbsp; | &amp;nbsp;| 1|x &amp;nbsp; | &lt;br /&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 2|b &amp;nbsp; | &amp;nbsp;| 2|y &amp;nbsp; | &lt;br /&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +--+----+ &amp;nbsp;+--+----+ &lt;/code&gt;&lt;/div&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
Natürlich ist dieses Ergebnis nicht zu gebrauchen, da es keinerlei Beziehungen zwischen den &lt;br /&gt;
Datensätzen gibt. &amp;nbsp;&lt;br /&gt;
&lt;h3&gt;3. Equi/Non-Equi Join&lt;/h3&gt; &lt;br /&gt;
Hier wird auf GleichHeit bzw. Ungleichheit zwischen einzelnen Spalten geprüft. &amp;nbsp;&lt;br /&gt;
&lt;strong&gt;Equi Join&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;blubb.id = blubber.id &lt;br /&gt;
'blubb' &amp;nbsp; &amp;nbsp;'blubber' &amp;nbsp; &amp;nbsp;Ergebnis &lt;br /&gt;
+--+----+ &amp;nbsp;+--+----+ &amp;nbsp; &amp;nbsp;+--+----+ &amp;nbsp;+--+----+&lt;br /&gt;
|id|text| &amp;nbsp;|id|text| &amp;nbsp; &amp;nbsp;|id|text| &amp;nbsp;|id|text| &lt;br /&gt;
+--+----+ &amp;nbsp;+--+----+ &amp;nbsp; &amp;nbsp;+--+----+ &amp;nbsp;+--+----+&lt;br /&gt;
| 1|a &amp;nbsp; | &amp;nbsp;| 1|x &amp;nbsp; | &amp;nbsp; &amp;nbsp;| 1|a &amp;nbsp; | &amp;nbsp;| 1|x &amp;nbsp; | &lt;br /&gt;
| 2|b &amp;nbsp; | &amp;nbsp;| 2|y &amp;nbsp; | &amp;nbsp; &amp;nbsp;| 2|b &amp;nbsp; | &amp;nbsp;| 2|y &amp;nbsp; | &lt;br /&gt;
+--+----+ &amp;nbsp;+--+----+ &amp;nbsp; &amp;nbsp;+--+----+ &amp;nbsp;+--+----+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;strong&gt;Non-Equi Join&lt;/strong&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;blubb.id != blubber.id &lt;br /&gt;
'blubb' &amp;nbsp; &amp;nbsp;'blubber' &amp;nbsp; &amp;nbsp;Ergebnis &lt;br /&gt;
+--+----+ &amp;nbsp;+--+----+ &amp;nbsp; &amp;nbsp;+--+----+ &amp;nbsp;+--+----+&lt;br /&gt;
|id|text| &amp;nbsp;|id|text| &amp;nbsp; &amp;nbsp;|id|text| &amp;nbsp;|id|text| &lt;br /&gt;
+--+----+ &amp;nbsp;+--+----+ &amp;nbsp; &amp;nbsp;+--+----+ &amp;nbsp;+--+----+&lt;br /&gt;
| 1|a &amp;nbsp; | &amp;nbsp;| 1|x &amp;nbsp; | &amp;nbsp; &amp;nbsp;| 1|a &amp;nbsp; | &amp;nbsp;| 2|y &amp;nbsp; | &lt;br /&gt;
| 2|b &amp;nbsp; | &amp;nbsp;| 2|y &amp;nbsp; | &amp;nbsp; &amp;nbsp;| 2|b &amp;nbsp; | &amp;nbsp;| 1|x &amp;nbsp; | &lt;br /&gt;
+--+----+ &amp;nbsp;+--+----+ &amp;nbsp; &amp;nbsp;+--+----+ &amp;nbsp;+--+----+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;4. Natural Join &lt;/h3&gt;&lt;br /&gt;
In diesem Fall wird nach Spalten mit gleichem Namen und identischem Inhalt gesucht. Bei &lt;br /&gt;
einer Übereinstimmung werden sie zu einer Spalte zusammen geführt. &amp;nbsp;&lt;br /&gt;
blubb.id = blubber.id &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;'blubb' &amp;nbsp; &amp;nbsp;'blubber' &amp;nbsp; &amp;nbsp; &amp;nbsp;Ergebnis &lt;br /&gt;
+--+-----+ &amp;nbsp;+--+-----+ &amp;nbsp; &amp;nbsp;+--+-----+-----+&lt;br /&gt;
|id|text1| &amp;nbsp;|id|text2| &amp;nbsp; &amp;nbsp;|id|text1|text2| &lt;br /&gt;
+--+-----+ &amp;nbsp;+--+-----+ &amp;nbsp; &amp;nbsp;+--+-----+-----+&lt;br /&gt;
| 1|a &amp;nbsp; &amp;nbsp;| &amp;nbsp;| 1|x &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;| 1|a &amp;nbsp; &amp;nbsp;|y &amp;nbsp; &amp;nbsp;| &lt;br /&gt;
| 2|b &amp;nbsp; &amp;nbsp;| &amp;nbsp;| 2|y &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;| 2|b &amp;nbsp; &amp;nbsp;|x &amp;nbsp; &amp;nbsp;| &lt;br /&gt;
+--+-----+ &amp;nbsp;+--+-----+ &amp;nbsp; &amp;nbsp;+--+-----+-----+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Alias&lt;/h2&gt;&lt;br /&gt;
&lt;h3&gt;1. Namen vergeben &lt;/h3&gt;&lt;br /&gt;
Wenn man mit Abfragen über mehrere Tabellen arbeitet, so muss man sich über ein &lt;br /&gt;
paar Dinge im Klaren sein. Denn sonst kommt man später in die Bredouille. &amp;nbsp;&lt;br /&gt;
&lt;h3&gt;2. Das Problem &lt;/h3&gt;&lt;br /&gt;
&lt;div class=&quot;bb-pre&quot;&gt;&lt;code&gt;Tabelle 'bla' &amp;nbsp; Tabelle 'laber' &lt;br /&gt;
+---+-----+ &amp;nbsp; &amp;nbsp;+--+-------+&lt;br /&gt;
|id |blubb| &amp;nbsp; &amp;nbsp;|id|blubber| &lt;br /&gt;
+---+-----+ &amp;nbsp; &amp;nbsp;+--+-------+&lt;br /&gt;
| &amp;nbsp;1|a &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;| 1|x &amp;nbsp; &amp;nbsp; &amp;nbsp;| &lt;br /&gt;
| &amp;nbsp;2|b &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;| 2|y &amp;nbsp; &amp;nbsp; &amp;nbsp;| &lt;br /&gt;
+---+-----+ &amp;nbsp; &amp;nbsp;+--+-------+&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
Wenn man nun nach den Spalten blubb und blubber sucht, so reicht ein einfaches &lt;br /&gt;
SELECT blubb, blubber FROM ... völlig aus, da die beiden Spalten unterschiedliche &lt;br /&gt;
Namen haben. Es gibt nur ein Problem. Wenn man die Datenbankstruktur nicht auswendig &lt;br /&gt;
im Kopf hat, so weiß man auf Anhieb nicht, welche Spalte sich in welcher Tabelle befindet. &amp;nbsp;&lt;br /&gt;
Und was passiert, wenn man die gleichnamigen Spalten id auch noch haben möchte? Dann &lt;br /&gt;
gibt es unter Umständen später Probleme. &lt;br /&gt;
Warum? Ganz einfach. Der Name einer Spalte wird bei einem mysql_fetch_assoc als &lt;br /&gt;
Wert für das entsprechende assoziative Array benutzt. Und wenn MySQL zwei Spalten &lt;br /&gt;
gleichen Namens zurückliefert, so kommt nur Letzteres bei an. &amp;nbsp;&lt;br /&gt;
&lt;h3&gt;3. Lösungen &lt;/h3&gt;&lt;br /&gt;
&lt;strong&gt;Möglichkeit 1&lt;/strong&gt; &lt;br /&gt;
Man kombiniert die Spalten- mit den Tabellenamen, also &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;SQL CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;sql&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;bla&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;bla&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;blubb&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;laber&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;laber&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;blubber &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;bla&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; laber&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;strong&gt;Möglichkeit 2&lt;/strong&gt; &lt;br /&gt;
Man legt für den Tabellennamen einen Alias an. Da Programmierer eigentlich ziemlich &lt;br /&gt;
tippfaul sind, nimmt man gewöhnlich und so weit wie möglich den Anfangsbuchstaben der &lt;br /&gt;
Tabelle. &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;SQL CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;sql&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;b&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;b&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;blubb&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;l&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;l&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;blubber &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;bla b&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;laber l&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;4. Gleichnamige Spalten &lt;/h3&gt;&lt;br /&gt;
Wie ich schon sagte, gibt es in der Situation Probleme. Daher sollte man auch &lt;br /&gt;
gleichnamigen Spalten einen Alias verpassen. Im Gegensatz zu den Tabellen benötigt man &lt;br /&gt;
hier ein AS. &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;SQL CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;sql&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;b&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;AS&lt;/span&gt; b_id &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;b&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;blubb&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;l&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;id &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;AS&lt;/span&gt; l_id&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;l&lt;span style=&quot;color: #66cc66;&quot;&gt;.&lt;/span&gt;blubber &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;bla b&lt;span style=&quot;color: #66cc66;&quot;&gt;,&lt;/span&gt; &amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;laber l&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;5. Wichtig &lt;/h3&gt;&lt;br /&gt;
Wenn man sowohl den Tabellen als auch den Spalten einen Alias verpasst, so hat das &lt;br /&gt;
KEINE Auswirkung auf die tatsächliche Struktur einer Datenbank. Es geht ausschließlich um &lt;br /&gt;
die Namen der Rückgabewerte, die zum Beispiel von PHP verarbeitet werden müssen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Teil 2 folgt Morgen.</description>
            <pubDate>Wed, 16 Feb 2011 18:25:10 +0100</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/PHP-Debug-Funktion-endlich-ordentlich-debuggen/#comments</comments>
            <title>PHP Debug Funktion, endlich ordentlich debuggen</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/PHP-Debug-Funktion-endlich-ordentlich-debuggen/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/PHP-Debug-Funktion-endlich-ordentlich-debuggen/</guid>
            <category>PHP</category>
            <description>Huhu Leute, ich will euch mal was überlassen, ist vor ein paar Jahre mal entstanden für was ich das damals brauchte keine Ahnung aber seit dem nutze ich sie. &lt;br /&gt;
Es eine Debug Funktion, die ihr mit einer Anzahl von X Argumenten füttern könnt, ist das letzte Argument true mach die Funktion kein echo sondern gibt den Dump per return zurück.&lt;br /&gt;
&lt;br /&gt;
Die Funktion kann natürlich auch in einem eingenen Error Handler genutzt werden um sich zb bei einem Error alle zur Zeit definierten Vars auszugeben, wer dazu mehr wissen will oder sehen möchte wie ein eigene Error Handler mit dieser Funktion aussehen können sagt bescheid dann schreibe ich schnell eine.&lt;br /&gt;
&lt;br /&gt;
Des weiteren könnt ihr per Konstante entscheiden ob ihr var_dump oder print_r nutzen wollt&lt;br /&gt;
es wird geprüft ob die Funktion nicht schon existiert wenn nein wird sie angelegt&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Die Funktion&lt;/h2&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;!&lt;/span&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/function_exists&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;function_exists&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #008800;&quot;&gt;'p'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;define&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'TT2_DEBUG_USE_PRINTR'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; p&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$r&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$a&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;''&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$params&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/func_num_args&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;func_num_args&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$args&lt;/span&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/func_get_args&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;func_get_args&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$return&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$params&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$args&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$params&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;===&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt; ? &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$i&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$i&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$params&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;++&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$r&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.=&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'&amp;lt;pre&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; TT2_DEBUG_USE_PRINTR &lt;span style=&quot;color: #000000;&quot;&gt;===&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$r&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/htmlspecialchars&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;htmlspecialchars&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/print_r&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;print_r&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$args&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;ENT_QUOTES&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/ob_start&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;ob_start&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/var_dump&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;var_dump&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$args&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$a&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/ob_get_contents&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;ob_get_contents&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/ob_end_clean&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;ob_end_clean&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$r&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/htmlspecialchars&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;htmlspecialchars&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$a&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;ENT_QUOTES&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$r&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;.=&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'&amp;lt;/pre&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$return&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;===&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$r&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$r&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h2&gt;Benutzung&lt;/h2&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Test Variablen&lt;/h3&gt;&lt;br /&gt;
ich nutze für die Veranschaulichung folgende Vars&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; tt2_debug_test_class&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;protected&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$classProtectedVar&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;123456&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt; &amp;nbsp; &lt;span style=&quot;color: #000088;&quot;&gt;$classPrivateVar&lt;/span&gt; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'I am private'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;public&lt;/span&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$classPublicVar&lt;/span&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'abcd'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #008800;&quot;&gt;'aaabbb'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'ccc'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;123&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #008800;&quot;&gt;'ddd'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'xyz'&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$varA&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/microtime&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;microtime&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$varB&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'abcd'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$varC&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; tt2_debug_test_class&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$varD&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;2010&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$varE&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'a'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;2&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'a'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'b'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'c'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'z'&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;der Aufruf&lt;/h3&gt;&lt;br /&gt;
&lt;h4&gt;Ohne return&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;p&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$varA&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$varB&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$varC&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$varD&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$varE&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Mit return&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$dump&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; p&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$varA&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$varB&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$varC&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$varD&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$varE&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;true&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$dump&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;var_dump Ausgabe&lt;/h3&gt;&lt;br /&gt;
Ausgabe wenn die Konstante TT2_DEBUG_USE_PRINTR === false ist also var_dump genutz wird&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;string&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;21&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;0.14732200 1293110747&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;string&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;abcd&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;object&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;tt2_debug_test_class&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#1 (3) {&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;classProtectedVar&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;int&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;123456&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;classPrivateVar&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;tt2_debug_test_class&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;string&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;12&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;I am private&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;classPublicVar&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;string&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;abcd&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;string&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;aaabbb&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;ccc&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;int&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;123&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;ddd&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;string&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;xyz&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;int&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;2010&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;int&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;string&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;a&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;string&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;a&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;string&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;b&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;string&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;c&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;string&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;&amp;quot;z&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;print_r Ausgabe&lt;/h3&gt;&lt;br /&gt;
Ausgabe wenn die Konstante TT2_DEBUG_USE_PRINTR === true ist also print_r genutz wird&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color:#e00;&quot;&gt;0.57874200&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;1293110947&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;abcd&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;tt2_debug_test_class Object&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;classProtectedVar&lt;span style=&quot;color: #000000;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;protected&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;123456&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;classPrivateVar&lt;span style=&quot;color: #000000;&quot;&gt;:&lt;/span&gt;tt2_debug_test_class&lt;span style=&quot;color: #000000;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; I am &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;private&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;classPublicVar&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;Array&lt;/span&gt;&lt;/a&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; abcd&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; aaabbb&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;Array&lt;/span&gt;&lt;/a&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;ccc&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;123&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;ddd&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; xyz&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;2010&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;Array&lt;/span&gt;&lt;/a&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #ee0000;&quot;&gt;0&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; a&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;Array&lt;/span&gt;&lt;/a&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; a&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; b&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; c&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ee0000;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&amp;gt;&lt;/span&gt; z&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
mfg tantetoni2</description>
            <pubDate>Thu, 23 Dec 2010 15:13:27 +0100</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Stargate-Universe-wird-abgesetzt/#comments</comments>
            <title>Stargate Universe wird abgesetzt</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Stargate-Universe-wird-abgesetzt/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Stargate-Universe-wird-abgesetzt/</guid>
            <category>Sonstiges</category>
            <description>So mal was ganz anderes, aber Fan bleibt Fan :D&lt;br /&gt;
&lt;br /&gt;
Wie der SciFi Channel jetzt berichtet, wird die bereits seit langen krieselnde Serie &amp;quot;Stargate Universe&amp;quot; nicht für eine dritte Season verlängert. &lt;br /&gt;
&lt;br /&gt;
Stargate Universe, die inzwischen dritte Stargate Serie hatte bereits seit beginn mit massiver Kritik zu kämpfen, da sie sich drastisch von den beiden bisherigen Serien Stargate SG-1 und Stargate Atlantis unterschied. Viele kritisierten die Serie mit dem Vorwurf, das sie nichts anderes als eine Anleihe von Battlestar Galactica und Star Trek Voyager sei.&lt;br /&gt;
&lt;br /&gt;
Die Quoten der Serie duchlebten eine ständige Berg und Talfahrt, die auch eine rasantere zweite Season nicht aufhalten konnte.&lt;br /&gt;
In der zweiten Season kamen vermehrt Alien Spezies vor, das Stargate wurde öfter benutzt, und Dr. Rush fand endlich die Brücke der Destiny, womit man das Schiff steuern konnte. Zudem entdeckte Rush einen Masterplan der Antiker, nachdem die Destiny nicht grundlos auf die Reise geschickt wurde.&lt;br /&gt;
&lt;br /&gt;
SG:U wird damit wohl ein offendes Ende haben, da die Produzenten kürzlich verlauten ließen, das sie den Serien-Plot auf eine fünf-Jahres Mission ausgelegt hatten. Da bereits die erste Hälfte der zweiten Season im Fernsehen gelaufen ist, und die verbliebenden 10 Episoden zumindest größtenteils abgedreht sind, bleibt keine Möglichkeit ein vernümpftiges Ende zu schreiben.&lt;br /&gt;
&lt;br /&gt;
Damit cancelt der amerikanische SyFy-Sender nun das zweite große Science Fiction Franchise nach dem Battlestar Galactica Ableger &amp;quot;Caprica&amp;quot; der sogar nur eine Staffel lang laufen durfte.&lt;br /&gt;
&lt;br /&gt;
Quelle: treknews.de</description>
            <pubDate>Fri, 17 Dec 2010 19:35:23 +0100</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Javascript-Prfung-mit-PHP-so-einfach-gehts/#comments</comments>
            <title>Javascript Prüfung mit PHP so einfach gehts</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Javascript-Prfung-mit-PHP-so-einfach-gehts/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Javascript-Prfung-mit-PHP-so-einfach-gehts/</guid>
            <category>PHP</category>
            <description>&lt;h2&gt;Vorwort&lt;/h2&gt;&lt;br /&gt;
Bekanntlich führen ja viele Wege zum Ziel, auch für die Prüfung in PHP ob Javascript aktiviert ist gibt es viele Wege, aber der folgende ist meiner Meinung nach der schnellste und simpelste.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Der Code&lt;/h2&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/isset&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;isset&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #008800;&quot;&gt;'jstest'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$nojs&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;FALSE&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// create a hidden form and submit it with javascript&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'&amp;lt;form name=&amp;quot;jsform&amp;quot; id=&amp;quot;jsform&amp;quot; method=&amp;quot;post&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #008800;&quot;&gt; style=&amp;quot;display:none&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'&amp;lt;input name=&amp;quot;jstest&amp;quot; type=&amp;quot;text&amp;quot; value=&amp;quot;true&amp;quot; /&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'&amp;lt;script language=&amp;quot;javascript&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'document.jsform.submit();'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'&amp;lt;/script&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #008800;&quot;&gt;'&amp;lt;/form&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// the variable below would be set only if the form wasn't submitted, hence JS is disabled&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$nojs&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$nojs&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;===&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//JS is OFF, do the PHP stuff&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;Erklärung&lt;/h2&gt;&lt;br /&gt;
Wie ihr am Code sehen könnt wird ein verstecktes Formular erstellt welches abgesendet wird wenn Javascript im Browser aktiviert ist.&lt;br /&gt;
Anhand von &lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.php.net/isset&quot;&gt;&lt;span style=&quot;color: #a0000a; font-weight: bold;&quot;&gt;isset&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_POST&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #008800;&quot;&gt;'jstest'&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt; &amp;nbsp;&lt;span style=&quot;color: #000088;&quot;&gt;$nojs&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;FALSE&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
wird geprüft ob das Formular abgesendet wurde ist dies der Fall wird die variable &lt;span style=&quot;color:#0000FF&quot;&gt;$nojs&lt;/span&gt; auf false gesetzt und somit ist Javascript im Browser aktiviert.&lt;br /&gt;
&lt;br /&gt;
Sollte Javascript deaktiviert sein wird das Formular natürlich nicht automatisch abgesendet und &amp;nbsp;somit ist die Variable &lt;span style=&quot;color:#0000FF&quot;&gt;$nojs&lt;/span&gt; true&lt;br /&gt;
An folgender Stelle kann bestimmter Code ausgeführt wenn Javascript deaktiviert ist&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;PHP CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;php&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$nojs&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;===&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;TRUE&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Code&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
Man könnte natürlich noch einen else Zweig nutzen und zB. das Ergebniss in einer Session speichern, damit die Prüfung nicht jedes mal durch geführt wird.&lt;br /&gt;
Diese Variante nutz zwar einen Request mehr dennoch finde ich sie als sehr effizient und simpel.&lt;br /&gt;
&lt;br /&gt;
Kommentare dazu stehen natürlich offen.&lt;br /&gt;
&lt;br /&gt;
mfg Toni</description>
            <pubDate>Wed, 03 Nov 2010 20:04:02 +0100</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/RSchulz/&quot; title=&quot;&quot;&gt;RSchulz&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/RSchulz/Objektorientierte-Programmierung/#comments</comments>
            <title>Objektorientierte Programmierung</title>
            <link>http://it08.tb-world.de/blog/RSchulz/Objektorientierte-Programmierung/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/RSchulz/Objektorientierte-Programmierung/</guid>
            <category>Allgemeines</category>
            <description>Da unsere Klasse hauptsächlich mit JAVA programmieren wird und JAVA eine objektorientierte Programmiersprache ist, möchte ich den Begriff &amp;quot;Objektorientierte Programmierung&amp;quot; (&lt;span style=&quot;font-style:italic;&quot;&gt;kurz OOP&lt;/span&gt;) etwas unter die Lupe nehmen und versuchen diesen verständlich zu erläutern.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Vorwort&lt;/h3&gt;&lt;br /&gt;
Vorweg ist zu sagen, dass objektorientierte Programmierung zum Standard geworden ist. In der Ausbildung zum Anwendungsentwickler wird i.d.R. von Anfang an nur dieser Ansatz der Programmierung unterrichtet. Die Entwicklung komplexer Softwaresysteme ohne objektorientierte Programmierung ist heutzutage eher eine Ausnahme.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Grundlegendes&lt;/h3&gt;&lt;br /&gt;
Der Grundgedanke der OOP ist, Daten und Funktionen, die auf diese Daten zugreifen oder sie manipulieren, eng beieinander in sogenannten Objekten zu halten. Diese Objekte haben den Vorteil, dass die Daten innerhalb dieser nicht versehentlich von anderen Objekten bzw. Methoden manipuliert werden können.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Beispiel&lt;/h3&gt;&lt;br /&gt;
Software an sich abstrahiert Arbeitsschritte die der Mensch in der realen Welt ausführt. Wenn wir uns jetzt z.B. ein Warenlager anschauen, dann erkennen wir, dass die einzelnen Schritte wie Wareneingang, Warenerfassung, Warenlagerung und Warenausgang in einem direkten Zusammenhang zueinander stehen. Jetzt stellen wir uns mal vor, dass das Lager direkt im Büro der Firma ist und alle zusammen in einem Raum arbeiten... wäre das nicht ein schönes Chaos?&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Das Beispiel in OOP&lt;/h4&gt;&lt;br /&gt;
Mit der OOP werden wir nun versuchen dieses Chaos zu optimieren. Der erste Schritt den wir machen, ist das Büro und das Lager zu trennen. Wir erstellen also zwei Klassen (&lt;span style=&quot;font-style:italic;&quot;&gt;wie es in der OOP genannt wird&lt;/span&gt;), die Klasse &amp;quot;Büro&amp;quot; und die Klasse &amp;quot;Lager&amp;quot;. Die Büroklasse beschäftigt sich nun in einem separaten Raum ausschließlich mir der Büroarbeit, die Lagerklasse mit der Lagerarbeit.&lt;br /&gt;
&lt;br /&gt;
Im Objekt Lagerklasse legen wir Methoden für den Wareneingang, die Warenerfassung, die Warenlagerung und den Warenausgang an. Diese stehen dann nur im Lagerklassenobjekt zur Verfügung und werden von der Büroarbeit nicht mehr behindert bzw. behindern diese auch nicht mehr.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Abschließendes&lt;/h3&gt;&lt;br /&gt;
Ich hoffe ich konnte euch die Idee die hinter der OOP steht etwas näher bringen und wünsche euch eine geruhsame Nacht.&lt;br /&gt;
&lt;br /&gt;
Dieser Beitrag ist auch in meinem Blog zu lesen:&lt;br /&gt;
&lt;a href=&quot;http://raischblog.de/Objektorientierte-Programmierung/&quot;&gt;raischblog.de/Objektorientierte-Programmierung/&lt;/a&gt;</description>
            <pubDate>Fri, 29 Oct 2010 22:15:01 +0200</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Java---Standard-Operatoren-und-Operanden-Teil-1/#comments</comments>
            <title>Java - Standard Operatoren und Operanden Teil 1</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Java---Standard-Operatoren-und-Operanden-Teil-1/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Java---Standard-Operatoren-und-Operanden-Teil-1/</guid>
            <category>JAVA</category>
            <description>&lt;h1&gt;Operatoren &amp;amp; Operanden&lt;/h1&gt; Dabei handelt es sich um Anweisungen, die auf der Basis von Werten mathematische Operationen durchführen. &lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Kategorisierung&lt;/h3&gt;&lt;br /&gt;
Bevor wir uns nun den verschiedenen Operatoren widmen, wollen wir kurz einige wichtige Merkmale aller Operatoren beschreiben, durch die sie sich spezifizieren lassen. Dabei gibt es vier Kategorien zu nennen, die die Operatoren in ihrer Funktionalität beschreiben. &lt;br /&gt;
&lt;br /&gt;
Die hier vermittelten Grundlagen werden später als entsprechende Spalten in den Operatortabellen wieder auftauchen, um alle Informationen übersichtlich und zusammenhängend darstellen zu können. Daher sollten Sie sich diese Punkte gut einprägen oder gegebenenfalls noch einmal nachschlagen. &lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Operanden&lt;/h4&gt;&lt;br /&gt;
Jeder Operator hat eine bestimmte Anzahl von Operanden, die fest an der Operation beteiligt sind. Java kennt hier drei verschiedene Typen mit entweder einem, zwei oder drei Operanden. In den folgenden Beschreibungen der verschiedenen Operatoren werden wir daher jeweils angeben, um welchen Typ es sich handelt. &lt;br /&gt;
&lt;br /&gt;
1 Operand = unärer Operator &lt;br /&gt;
2 Operanden = binärer Operator &lt;br /&gt;
3 Operanden = ternärer Operator &lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Typisierung&lt;/h4&gt;&lt;br /&gt;
Alle Operanden werden eindeutig durch ihren Typ bestimmt. Dadurch wird festgelegt, mit welchen Typen ein Operator arbeiten kann. Folglich werder wir eine Tabelle mit allen acht möglichen Typen aufstellen. Die hier aufgestellten Bezeichnungen werden dann wieder in den Tabellen der entsprechenden Operatorbeschreibungen auftauchen. &lt;br /&gt;
&lt;br /&gt;
N = numerischer Typ &lt;br /&gt;
I = integraler Typ &amp;nbsp;&lt;br /&gt;
L = logischer Typ &amp;nbsp;&lt;br /&gt;
P = primitiver Typ &amp;nbsp;&lt;br /&gt;
A = alle Typen &amp;nbsp;&lt;br /&gt;
S = String &amp;nbsp;&lt;br /&gt;
R = Referenz &amp;nbsp;&lt;br /&gt;
V = Variable &amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Priorität&lt;/h4&gt;&lt;br /&gt;
Die Operatorpriorität stellt eine der wichtigsten Spezifizierungen dar. Sie legt fest, welche Operatoren in einer Anweisung Vorrang haben. Dadurch wird zum Beispiel sichergestellt, dass Anweisungen in einer logischen und korrekten Reihenfolge ausgeführt werden, sowie mathematische Grundregeln eingehalten werden. &lt;br /&gt;
&lt;br /&gt;
In den entsprechenden Tabellen werden daher alle Operatoren durch ihre Priorität geordnet werden. Die Operatoren mit einer kleineren Zahl entsprechen dabei den am höchsten priorisierten Operatoren. &lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Assoziativität &lt;/h4&gt;&lt;br /&gt;
Die Assoziativität beschreibt die Richtung der Ausführung von Operatoren, die die gleiche Prioritätsstufe besitzen. Diese kann entweder von links nach rechts oder umgekehrt verlaufen. So werden die mathematischen Rechenregeln sicher durchgeführt. &lt;br /&gt;
&lt;br /&gt;
In komplexen Ausdrücken werden daher zunächst aller höher priorisierten Ausdrücke ausgeführt und erst danach werden auf Grund der Assoziativität alle Zwischenwerte zusammengefasst. &lt;br /&gt;
&lt;h3&gt;arithmetische Operatoren &lt;/h3&gt;&lt;br /&gt;
Java kennt fünf arithmetische Operatoren für mathematische Berechnungen. Hinzu kommen zwei Operatoren für die Vorzeichenkennzeichnung. &lt;br /&gt;
&lt;br /&gt;
Die arithmetischen Operatoren verwenden numerische Typen und liefern numerische Werte. Bei unterschiedlichen Datentypen entspricht der Ergebnistyp dem größeren der beiden Operanden. Die Umwandlung der Werte entspricht den Konvertierungsregeln. &lt;br /&gt;
&lt;br /&gt;
+ = Verleiht einer Variable ein positives Vorzeichen. &amp;nbsp;&lt;br /&gt;
- = Verleiht einer Variable ein negatives Vorzeichen. &amp;nbsp;&lt;br /&gt;
+ = Führt eine Addition durch. &amp;nbsp;&lt;br /&gt;
- = Führt eine Subtraktion durch. &amp;nbsp;&lt;br /&gt;
* = Führt eine Multiplikation durch. &amp;nbsp;&lt;br /&gt;
/ = Führt eine Division durch. &amp;nbsp;&lt;br /&gt;
% = Führt eine Division durch, wobei nur der Restwert geliefert wird (Modulo).&lt;br /&gt;
&lt;br /&gt;
Quelle: http://www.programmersbase.net&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Teil 2 folgt demnächst.&lt;/strong&gt;</description>
            <pubDate>Mon, 25 Oct 2010 17:50:46 +0200</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Die-Zeit-ist-reif-Java-kommt/#comments</comments>
            <title>Die Zeit ist reif Java kommt</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Die-Zeit-ist-reif-Java-kommt/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Die-Zeit-ist-reif-Java-kommt/</guid>
            <category>JAVA</category>
            <description>Hallo Leute, da es ja ab nächste Woche dienstag mit der Java Programmierung los geht, habe ich mir gedacht ich stelle euch mal Java vor und zeige euch anschließend ein paar paar kleine Java codeschnipsel zu zeigen auch wenn die meisten damit noch nicht viel anfangen können.&lt;br /&gt;
&lt;br /&gt;
Java ist eine objektorientierte Programmiersprache und eingetragenes Warenzeichen der Firma Sun Microsystems, welche Ende Januar 2010 von Oracle übernommen wurde. Die Programmiersprache ist ein Bestandteil der Java-Technologie.&lt;br /&gt;
&lt;br /&gt;
Java-Programme werden in Bytecode übersetzt und dann in einer speziellen Umgebung ausgeführt, die als Java-Laufzeitumgebung oder Java-Plattform bezeichnet wird. Deren wichtigster Bestandteil ist die Java Virtual Machine (Java-VM), die die Programme ausführt, indem sie den Bytecode interpretiert und bei Bedarf kompiliert (Just-in-time-Kompilierung, häufig mit Hotspot-Optimierung).&lt;br /&gt;
&lt;br /&gt;
Java-Programme sind plattformunabhängig, das heißt sie laufen in aller Regel ohne weitere Anpassungen auf verschiedenen Computern und Betriebssystemen, wenn für diese eine Java-VM existiert. Sun selbst bietet Java-VMs für die Betriebssysteme Linux, Solaris und Windows an. Andere Hersteller lassen ihre Java-VM für ihre Plattform zertifizieren, zum Beispiel die Firma Apple für Mac OS X.&lt;br /&gt;
&lt;br /&gt;
Von Portierung spricht man bei Java in der Regel, wenn Quelltext oder Bytecode auf den Stand einer anderen Java-Version angepasst werden soll. Meistens sind Java-Programme nur für bestimmte Java-Versionen getestet oder zertifiziert.&lt;br /&gt;
&lt;br /&gt;
Der Entwurf der Programmiersprache Java strebte im Wesentlichen fünf Ziele an:&lt;br /&gt;
&lt;br /&gt;
Sie soll eine einfache objektorientierte, verteilte und vertraute Programmiersprache sein. &lt;br /&gt;
Sie soll robust und sicher sein. &lt;br /&gt;
Sie soll architekturneutral und portabel sein. &lt;br /&gt;
Sie soll sehr leistungsfähig sein. &lt;br /&gt;
Sie soll interpretierbar, parallelisierbar und dynamisch sein. &lt;br /&gt;
&lt;br /&gt;
So hier hier mal ein paar Grundlegende Informationen zu Variablen die natürlich auch bei anderen Programmiersprachen gültig sind&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;Variablen und Operatoren&lt;/h3&gt;&lt;br /&gt;
Variablen bezeichnen Werte, die sich während des Programmablaufs ändern. Operatoren sind Zeichen oder kleine Wörter, welche die Beziehung zwischen Variablen und Werten beschreiben. &lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Variablen&lt;/h4&gt; &lt;br /&gt;
Eine Variable bezeichnet einen Wert, der sich während der Ausführung des Programms ändert. Beispiel: Unser Roboter soll jeweils 3 Autos nehmen. Am Anfang sind es 3, wenn er das erste genommen hat, nur noch 2, dann nur noch 1, dann 0. Wenn er sie verpackt hat und wiederkommt, sind es wieder 3, usw. Wieviel Autos er noch nehmen soll, merken wir uns in einer Variablen: Am Anfang sind es 3. Wir schreiben dazu die Anweisung&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;AutosGenommen &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
Später im Programm wird der Wert geändert:&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;AutosGenommen &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
usw.&lt;br /&gt;
Den Namen der Variablen können wir selbst festlegen. Erlaubt ist fast alles, ausser: Er darf kein Java-Wort sein, darf nur aus alphanumerischen Zeichen und dem Zeichen _ (Unterstrich) bestehen und nicht mit einer Ziffer beginnen. Bevor Java das Wort AutosGenommen als Variable akzeptiert, muss die Variable allerdings deklariert werden, das bedeutet sie muss dem Übersetzer &amp;quot;vorgestellt&amp;quot; werden, so wie man einen Menschen in seinem Bekanntenkreis vorstellt, damit er nicht als Fremder abgewiesen wird:&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;variablenTyp variablenName&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//In unserem Beispiel:&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Abyte+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Byte&lt;/span&gt;&lt;/a&gt; AutosGenommen&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;AutosGenommen &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&amp;quot;Byte&amp;quot; ist der Variablentyp, in unserem Fall eine Zahl zwischen -128 und 127. Der Typ wird bei der Deklaration dem Namen vorangestellt.&lt;br /&gt;
Unser Programm besteht nun schon aus 2 Zeilen. Die erste Zeile ist die Deklaration einer Variablen, die zweite eine Wertzuweisung. Beides sind im weitesten Sinne Anweisungen. Das Gleichheitszeichen ist eine Wertzuweisung:&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;variablenName &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; variablenWert&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
Der Variablen AutosGenommen wird hier also der Wert 3 zugewiesen.&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Variablentypen&lt;/h4&gt;&lt;br /&gt;
&lt;strong&gt;Boolean&lt;/strong&gt; &lt;br /&gt;
Eine Variable vom Typ boolean kann nur den Wert true oder false annehmen. Die Anweisung dafür lautet zum Beispiel:&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; wahrOderFalsch&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//oder:&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;boolean&lt;/span&gt; falschOderWahr &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Ganzzahl-Typen&lt;/strong&gt;&lt;br /&gt;
Sie stehen für Zahlen ohne Kommastellen. Je nachdem, wie groß der Wertebereich sein muss, wählt man den passenden Typ:&lt;br /&gt;
&lt;br /&gt;
Typ Speicherplatz Wertebereich &lt;br /&gt;
byte 8 Bit -128 und 127 &lt;br /&gt;
short 16 Bit -32768...32767 &lt;br /&gt;
int 32 Bit -2147483648...2147483647 &lt;br /&gt;
long 64 Bit -9223372036854775808...9223372036854775807 &lt;br /&gt;
&lt;br /&gt;
boolean und die Ganzzahl-Typen nennt man auch &amp;quot;primitive&amp;quot; Typen.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Gleitkomma-Typen&lt;/strong&gt;&lt;br /&gt;
Sie beinhalten Zahlen mit Stellen nach dem Komma. Wenn es viele Stellen nach dem Komma gibt, ist der Platz für die Anzahl der Stellen vor dem Komma kleiner - das Komma kann also &amp;quot;gleiteten&amp;quot; - daher das Wort &amp;quot;Gleitkomma&amp;quot;: &lt;br /&gt;
&lt;br /&gt;
Typ Speicherplatz Wertebereich &lt;br /&gt;
float 32 Bit Einfache Genauigkeit &lt;br /&gt;
double 64 Bit doppelte Genauigkeit &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;string&lt;/strong&gt;&lt;br /&gt;
Ein String ist eine Gruppe von Zeichen hintereinander, also zum Beispiel ein Wort oder ein kleiner Text. &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;array&lt;/strong&gt;&lt;br /&gt;
Ein array ist eine Gruppe von Werten, eine Liste. Ein eindimensionales Array kann man sich wie eine Spalte einer Tabelle vorstellen. Äußerlich erkennt man eine Arrayvariable an den eckigen Klammern: &lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;Arrayvariable&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
So geschrieben ist das Array leer. Die einzelnen Elemente des Arrays kann man über ihre laufende Nummer ansprechen:&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Aarray+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;20&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Aarray+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
Zu beachten ist, dass das erste Element die laufende Nummer 0 hat, das 2. die laufende Nummer 1 usw. Der Datentyp der Elemente eines Arrays kann jeder beliebige Variablentyp sein. Wenn einmal ein Wert eines bestimmten Datentyps benutzt worden ist, muss man aber dabei bleiben; innerhalb einer Dimension dürfen nicht verschiedene Datentypen benutzt werden.&lt;br /&gt;
quelle:&lt;br /&gt;
&lt;br /&gt;
&lt;h1&gt;Codeschnipsel&lt;/h1&gt;&lt;br /&gt;
&lt;h3&gt;Zahlen&lt;/h3&gt;&lt;br /&gt;
&lt;h4&gt;Erzeugen einer Zufallszahl&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Erzeugt eine Zufallszahl zwischen 0 und 9&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; java.&lt;span style=&quot;color: #006633;&quot;&gt;util&lt;/span&gt;.&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Arandom+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Random&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;nextInt&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Wenn man das Paket java.util importiert hat, reicht natürlich auch:&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Arandom+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Random&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;nextInt&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;Umwandeln einer Zeichenkette in eine Zahl&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Ainteger+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Integer&lt;/span&gt;&lt;/a&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;parseInt&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;42&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Liefert die Zahl 42 zurück.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;Ausgabe&lt;/h3&gt;&lt;br /&gt;
&lt;h4&gt;Ausgabe von Text auf der Standardausgabe&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Asystem+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;System&lt;/span&gt;&lt;/a&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;out&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;println&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;Hallo Welt&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h4&gt;Grafische Ausgabe von Text&lt;/h4&gt;&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Klasse JOptionPane aus Paket javax.swing&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Ajoptionpane+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;JOptionPane&lt;/span&gt;&lt;/a&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;showMessageDialog&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;null&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;Hallo Welt&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;Nützliches rund um GUI's&lt;/h3&gt;&lt;br /&gt;
&lt;h4&gt;Icon der Taskleiste setzen&lt;/h4&gt;&lt;br /&gt;
Um das Symbol, das in der Taskleiste erscheinen soll, zu setzen, kannst Du die Methode setIconImage der Klasse JFrame benutzen:&lt;br /&gt;
 &lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;setIconImage&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;new&lt;/span&gt; &lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Aimageicon+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;ImageIcon&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;getClass&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;getResource&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;nameDerDatei&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;getImage&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h4&gt;Programm beenden&lt;/h4&gt;&lt;br /&gt;
Zum Beenden einer Anwendung gibt es die statische Methode static void exit(int status) in der Klasse System im Paket java.lang. Im Normalfall wird die Methode mit System.exit(0) aufgerufen. &lt;br /&gt;
&lt;h4&gt;Umwandlung von Zahlen und Strings&lt;/h4&gt;&lt;br /&gt;
Bei der Programmierung von GUIs muss man oft Zeichenketten und Zahlen konvertieren, da Komponenten wie ein JLabel oder JTextField Strings anzeigen, aber eigentlich eine Zahl erscheinen soll, mit der z.B. auch gerechnet werden soll. &lt;br /&gt;
&lt;br /&gt;
Um den ganzzahligen Wert einer Zeichenkette zu erhalten, gibt es in der Klasse Integer eine statische Methode parseInt(String s), die ein Objekt vom Typ String erwartet und dessen ganzzahligen Wert zurück gibt. Um eine ganze Zahl als Zeichenkette zu erhalten, kann man z.B. die statische Methode valueOf(int i) der Klasse String benutzen, oder die Zahl mit einer Zeichenkette verknüpfen. &lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;JAVA CODE&lt;div class=&quot;geshi&quot;&gt;&lt;div class=&quot;java&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Ainteger+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;Integer&lt;/span&gt;&lt;/a&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;parseInt&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot;42&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Liefert die Zahl 42 zurück.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;a style=&quot;color: #000060;&quot; href=&quot;http://www.google.com/search?hl=en&amp;amp;q=allinurl%3Astring+java.sun.com&amp;amp;btnI=I%27m%20Feeling%20Lucky&quot;&gt;&lt;span style=&quot;color: #003399;&quot;&gt;String&lt;/span&gt;&lt;/a&gt;.&lt;span style=&quot;color: #006633;&quot;&gt;valueOf&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;42&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Liefert die Zeichenkette &amp;quot;42&amp;quot; zurück.&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;color: #003030;&quot;&gt;&lt;pre style=&quot;font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;color: #000020;&quot;&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;42&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;&amp;quot; ist die Antwort&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &amp;nbsp; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// ergibt die Zeichenkette &amp;quot;42 ist die Antwort&amp;quot;. &lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
Die Konvertierung zwischen anderen primitiven Datentypen - wie z.B. boolean oder double - und String erfolgt analog. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So ich denke das reicht erst einmal nicht das ihr noch Angst bekommt, ein schönes Wochenende euch allen.&lt;br /&gt;
&lt;br /&gt;
mfg Toni</description>
            <pubDate>Fri, 22 Oct 2010 22:38:46 +0200</pubDate>
        </item>

        <item>
            
            <dc:creator>&lt;a href=&quot;http://it08.tb-world.de/blog/tantetoni2/&quot; title=&quot;&quot;&gt;tantetoni2&lt;/a&gt;</dc:creator>
            <comments>http://it08.tb-world.de/blog/tantetoni2/Der-erste-Beitrag/#comments</comments>
            <title>Der erste Beitrag</title>
            <link>http://it08.tb-world.de/blog/tantetoni2/Der-erste-Beitrag/</link>
            <guid isPermaLink="true">http://it08.tb-world.de/blog/tantetoni2/Der-erste-Beitrag/</guid>
            <category>Intern</category>
            <description>Zu aller erst, diese Seite befindet sich noch im Aufbau, hier entsteht ein kleines Lernportal mit Blog Funktion.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Was ist schon vorhanden:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1. Der Blog&lt;/strong&gt;&lt;br /&gt;
Artikel können geschrieben werden, Kommentiert werden (dies auch von Gästen).&lt;br /&gt;
Über regelmäßige Einträge von euch würde ich mich freuen.&lt;br /&gt;
&lt;span style=&quot;text-decoration:underline;&quot;&gt;Was fehlt:&lt;/span&gt;&lt;br /&gt;
	- Bewertungsfunktion&lt;br /&gt;
	- Bearbeitungsfunktion&lt;br /&gt;
	- Suchfunktion&lt;br /&gt;
	- und bestimmt noch irgendwas &lt;img src=&quot;http://it08.tb-world.de/css/smilies/smile1.gif&quot; border=&quot;0&quot; alt=&quot;:-)&quot; /&gt;&lt;br /&gt;
&lt;strong&gt;2. Der Multiple Choice Test&lt;/strong&gt;&lt;br /&gt;
Ein kleiner Test wo ihr eure Bisherigen Leistungen prüfen könnt. Test und Auswertung funktionieren schon.&lt;br /&gt;
&lt;span style=&quot;text-decoration:underline;&quot;&gt;Was fehlt:&lt;/span&gt;&lt;br /&gt;
	- Historiefunktion (Übersicht der bisherigen Ergebnisse)&lt;br /&gt;
	- Integration in den Themenkatalog der Fächer des kommenden Lernportals, dann 	- auch Themenauswahl&lt;br /&gt;
	- Helferlein die helfen Fragen und so einzutragen.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;3. Informatikfunk&lt;/strong&gt;&lt;br /&gt;
Hier könne ihr ein kleines Statement geben was ihr gerade macht, es werden die letzten 8 Einträge angezeigt und die Einträge sind auf 160 Zeichen begrenzt.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Was wird kommen:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1. &lt;strong&gt;Ein Eventplaner &lt;/strong&gt;wird mit dem Kalender im Menü verknüpft, zZ. werden hier nur vorhandene Blogeinträge hervorgehoben, später wird bei einem klick auf einen Tag wo Ereignisse oder Einträge vorhanden sind eine extra Seite kommen mir einer Übersicht was los und was passiert ist.&lt;br /&gt;
2. &lt;strong&gt;Ein kleines Nachrichtensystem &lt;/strong&gt;(Wird von einem anderen Projekt von mir an dieser Seite angepasst, also schon fertig bis auf die Änderungen, wird wohl als nächstes kommen.&lt;br /&gt;
3. &lt;strong&gt;Ein Diskussionsforum&lt;/strong&gt;&lt;br /&gt;
4. und das wichtigste das &lt;strong&gt;Lernportal&lt;/strong&gt;, hier kommen Arbeitsblätter, Tests, Mitschriften aus dem Unterricht rein und eventuell Downloads zu dem Themen&lt;br /&gt;
5. &lt;strong&gt;Eine Downloaddatenbank &lt;/strong&gt;für später ( für Tools, Quellcodes usw.)&lt;br /&gt;
6. &lt;strong&gt;Eine Profilseite&lt;/strong&gt;&lt;br /&gt;
7. und für zwischendurch ein &lt;strong&gt;MauMau Spiel &lt;/strong&gt;welches ich mal geschrieben habe&lt;br /&gt;
8. und für Gäste ein &lt;strong&gt;Gästebuch&lt;/strong&gt;&lt;br /&gt;
9. und ein &lt;strong&gt;Newsletter&lt;/strong&gt; wer über aktuellen und Events informiert werden will&lt;br /&gt;
&lt;br /&gt;
Diese Seite sollte in den nächsten zwei Jahre die erste sein die ihr besucht wenn ihr Zuhause euren Browser anschmeißt, ich weiß noch ist nicht viel möglich aber das kommt alles noch da die Seite ja von Grund auf neu gemacht wurde bist auf ein paar Backend Sachen wir die Klassen für das Usermanagement und der Datenbank und noch ein bisschen &lt;img src=&quot;http://it08.tb-world.de/css/smilies/grin.gif&quot; border=&quot;0&quot; alt=&quot;:-D&quot; /&gt;.&lt;br /&gt;
&lt;br /&gt;
Ich bitte euch mir sämtliche Fehler und Kuriositäten zumelden.&lt;br /&gt;
&lt;br /&gt;
So das wars erstmal wünsche euch schon mal viel Spaß hier&lt;br /&gt;
&lt;br /&gt;
euer Toni</description>
            <pubDate>Mon, 18 Oct 2010 16:30:32 +0200</pubDate>
        </item>
  </channel>
</rss>

