|
Einstieg in PHP 5.5 und MySQL 5.6 Thomas Theis, Galileo Computing
ISBN: 978-3-8362-2489-5
PHP für Fortgeschrittene Harry Fuecks, dPunkt.verlag
ISBN: 3-89864-300-X
Professionelle Softwareentwicklung mit PHP 5 Sebastian Bergmann, dPunkt.verlag
ISBN: 3-89864-229-1 Learn Java für Web Development Vishal Layka, Apress-Verlag ISBN:978-1-4302-5983-1
Pro ASP.net MVC 5 Adam Freeman, Apress-Verlag
ISBN: 978-1-4302-6529-0
C. Strobel: Web-Technologien in ECommerce-Systemen, Oldenbourg, 2003. Schwerpunke: JSP, Enterprise JavaBeans und CORBA)
|
|
|
php-Bereich
isset
if ( isset($_GET['vorname']) ){ // Ist gesetzt?
$vorname = $_GET['vorname'];
}
isset multiple
// the name of the select ui-element must have a '[]'
$liste = array();
if ( isset($_GET['liste']) ){ // Is the list gesetzt?
foreach ($_GET['prfs'] as $item) {
$liste[] = $item;
}
}
else {
//$ok =false;
}
isnumeric
if (is_numeric($sZahl)) {
$Zahl = intval ( $sZahl, 10 );
} else {
echo "Error in number conversion: the variable '???' is no number", PHP_EOL;
}
intval
$Zahl = intval ( $sZahl );
createArray
$feld = array();
addElement 2 Array
$feld[] = "newItem";
Anzahl der Elemente
$numberOfElements = count($feld)
foreach ($feld as $item) {
echo $item . ' ';
}
attrib get/set
private $attrib;
public function getattrib() {
return $this->attrib;
}
public function setattrib($value) {
$this->attrib=$value;
}
JSON
json encode
$ergebnis = json_encode($std->toArray());
regex
$match = '/^[A-ZÄÖÜ]{1,1}[a-zäüöß]{1,29}$/';
if(!preg_match($match, $lastname)) {
echo 'Fehlerhafter Nachname';
}
Stringlänge
strlen($str); // String-length
echo
echo 'Hier kommt ein Text in der HTML-Datei ' . PHP_EOL;
|
|