<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>css-schule.de &#187; PHP Operatoren</title>
	<atom:link href="http://css-schule.de/category/php/php-operatoren/feed" rel="self" type="application/rss+xml" />
	<link>http://css-schule.de</link>
	<description>Alles für den Webmaster.</description>
	<lastBuildDate>Sat, 14 Nov 2009 20:20:07 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP Operatoren</title>
		<link>http://css-schule.de/php-operatoren.html</link>
		<comments>http://css-schule.de/php-operatoren.html#comments</comments>
		<pubDate>Mon, 09 Nov 2009 16:44:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Operatoren]]></category>

		<guid isPermaLink="false">http://css-schule.de/?p=148</guid>
		<description><![CDATA[Operatoren werden verwendet, um Werte zu betreiben.

PHP Operatoren
In diesem Abschnitt werden die verschiedenen Akteure in PHP verwendet.
Arithmetische Operatoren



Betreiber
Beschreibung
Beispiel
Ergebnis


+
Zusatz
x = 2
x 2
4


-
Subtraktion
x = 2
5-x
3


*
Multiplikation
x = 4
x * 5
20


/
Division
15/5
5/2
3
2.5


%
Modulus (Abteilung Rest)
5%2
10%8
10%2
1
2
0


++
Increment
x = 5
x + +
x = 6


&#8211;
Decrement
x = 5
x &#8211;
x = 4



Zuweisungs-Operatoren



Betreiber
Beispiel
Ist die gleiche wie


=
x = y
x = y


+=
x + y =
x = x + y


-=
-x = [...]]]></description>
			<content:encoded><![CDATA[<p>Operatoren werden verwendet, um Werte zu betreiben.</p>
<hr />
<h2>PHP Operatoren</h2>
<p>In diesem Abschnitt werden die verschiedenen Akteure in PHP verwendet.</p>
<p><strong>Arithmetische Operatoren</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th width="15%" align="left">Betreiber</th>
<th width="40%" align="left">Beschreibung</th>
<th width="25%" align="left">Beispiel</th>
<th width="20%" align="left">Ergebnis</th>
</tr>
<tr>
<td valign="top">+</td>
<td valign="top">Zusatz</td>
<td valign="top">x = 2<br />
x 2</td>
<td valign="top">4</td>
</tr>
<tr>
<td valign="top">-</td>
<td valign="top">Subtraktion</td>
<td valign="top">x = 2<br />
5-x</td>
<td valign="top">3</td>
</tr>
<tr>
<td valign="top">*</td>
<td valign="top">Multiplikation</td>
<td valign="top">x = 4<br />
x * 5</td>
<td valign="top">20</td>
</tr>
<tr>
<td valign="top">/</td>
<td valign="top">Division</td>
<td valign="top">15/5<br />
5/2</td>
<td valign="top">3<br />
2.5</td>
</tr>
<tr>
<td valign="top">%</td>
<td valign="top">Modulus (Abteilung Rest)</td>
<td valign="top">5%2<br />
10%8<br />
10%2</td>
<td valign="top">1<br />
2<br />
0</td>
</tr>
<tr>
<td valign="top">++</td>
<td valign="top">Increment</td>
<td valign="top">x = 5<br />
x + +</td>
<td valign="top">x = 6</td>
</tr>
<tr>
<td valign="top">&#8211;</td>
<td valign="top">Decrement</td>
<td valign="top">x = 5<br />
x &#8211;</td>
<td valign="top">x = 4</td>
</tr>
</tbody>
</table>
<p><strong>Zuweisungs-Operatoren</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th width="15%" align="left">Betreiber</th>
<th width="40%" align="left">Beispiel</th>
<th width="45%" align="left">Ist die gleiche wie</th>
</tr>
<tr>
<td valign="top">=</td>
<td valign="top">x = y</td>
<td valign="top">x = y</td>
</tr>
<tr>
<td valign="top">+=</td>
<td valign="top">x + y =</td>
<td valign="top">x = x + y</td>
</tr>
<tr>
<td valign="top">-=</td>
<td valign="top">-x = y</td>
<td valign="top">x = x-y</td>
</tr>
<tr>
<td valign="top">*=</td>
<td valign="top">x *= y</td>
<td valign="top">x = x * y</td>
</tr>
<tr>
<td valign="top">/=</td>
<td valign="top">x / y =</td>
<td valign="top">x = x / y</td>
</tr>
<tr>
<td valign="top">.=</td>
<td valign="top">x = y</td>
<td valign="top">x = x.y</td>
</tr>
<tr>
<td valign="top">%=</td>
<td valign="top">x% = y</td>
<td valign="top">x = x% y</td>
</tr>
</tbody>
</table>
<p><strong>Vergleichs-Operatoren</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th width="15%" align="left">Betreiber</th>
<th width="40%" align="left">Beschreibung</th>
<th width="45%" align="left">Beispiel</th>
</tr>
<tr>
<td valign="top">==</td>
<td valign="top">ist gleich</td>
<td valign="top">5 == 8 false</td>
</tr>
<tr>
<td valign="top">!=</td>
<td valign="top">ist nicht gleich</td>
<td valign="top">5! = 8 true zurück</td>
</tr>
<tr>
<td valign="top">&lt;&gt;</td>
<td valign="top">ist nicht gleich</td>
<td valign="top">5 &lt;&gt; 8 true zurück</td>
</tr>
<tr>
<td valign="top">&gt;</td>
<td valign="top">größer ist als</td>
<td valign="top">5&gt; 8 false</td>
</tr>
<tr>
<td valign="top">&lt;</td>
<td valign="top">weniger als</td>
<td valign="top">5 &lt;8 true zurück</td>
</tr>
<tr>
<td valign="top">&gt;=</td>
<td valign="top">ist größer als oder gleich</td>
<td valign="top">5&gt; = 8 false</td>
</tr>
<tr>
<td valign="top">&lt;=</td>
<td valign="top">weniger als oder gleich</td>
<td valign="top">5 &lt;= 8 true zurück</td>
</tr>
</tbody>
</table>
<p><strong>Logische Operatoren</strong></p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<th width="15%" align="left">Betreiber</th>
<th width="40%" align="left">Beschreibung</th>
<th width="45%" align="left">Beispiel</th>
</tr>
<tr>
<td valign="top">&amp;&amp;</td>
<td valign="top">und</td>
<td valign="top">x = 6<br />
y = 3(x &lt;10 &amp; &amp; y&gt; 1) liefert true,</td>
</tr>
<tr>
<td valign="top">||</td>
<td valign="top">oder</td>
<td valign="top">x = 6<br />
y = 3(x == 5 | | y == 5) false</td>
</tr>
<tr>
<td valign="top">!</td>
<td valign="top">nicht</td>
<td valign="top">x = 6<br />
y = 3! (x == y) gibt true zurück</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://css-schule.de/php-operatoren.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
