siehe auch: Figurenbrut und Marcofinkenstein.de
Zum Opferberg →
Mittwoch, 23. Juni 2010
for

for ($i = 1; $i <= 10; $i++) {echo $i;}

for ($i = 1, $j = 0; $i <= 10; $j += $i, print $i, $i++);


Quelle: http://de3.php.net/manual/de/control-structures.for.php

Permalink (0 Kommentare)   Kommentieren

 


Freitag, 18. Juni 2010
Array-Deklaration in php

array("foo" => "bar", 12 => true);
array(5 => 43, 32, 56, "b" => 12);
array(5 => 43, 6 => 32, 7 => 56, "b" => 12);
Quelle: http://www.php.net/manual/de/language.types.array.php

Permalink (1 Kommentar)   Kommentieren

 


Mannigfaltige Verzweigung in php
(bedingte Ausführung #2)


switch ($i) {
case "apple":
echo "i is apple";
break;
case "bar":
echo "i is bar";
break;
case "cake":
echo "i is cake";
break;
}
Quelle: http://www.php.net/manual/de/control-structures.switch.php

Permalink (0 Kommentare)   Kommentieren

 


Bedingte Ausführung in php

if ($a > $b) {
echo "a ist größer als b";
} else {
echo "a ist NICHT größer als b";
}
Quelle: http://www.php.net/manual/de/control-structures.else.php

Permalink (0 Kommentare)   Kommentieren

 


Donnerstag, 17. Juni 2010
Schleife in php

$i = 1;
while ($i <= 10) {
echo $i++;
}


$i = 1;
while ($i <= 10):
echo $i;
$i++;
endwhile;
Quelle: http://www.php.net/manual/de/control-structures.while.php

Permalink (0 Kommentare)   Kommentieren

 


Sonntag, 13. Juni 2010
Fetzt voll...
sich einen Server zuhause auf dem eigenen Rechner zu installieren:
http://www.apachefriends.org/en/xampp.html
http://help.joomla.org/ghop/feb2008/task167/xampp.html

Wenn man dann noch Ahnung von PHP und so was hätte, könnte man sogar richtig wild damit rumspielen.
Ich sag nur "Content Management System"...
http://php.opensourcecms.com/

Permalink (0 Kommentare)   Kommentieren