Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<?php
class Example {
var $eingabe;
public function __construct() {
$this->eingabe = "";
}
public function setEingabe($eingabe) {
$this->eingabe = $eingabe;
}
public function getEingabe() {
return $this->eingabe;
}
public function __destruct() {
unset($this->eingabe);
}
}
//Objekt erzeugen
$myExample = new Example();
$myExample->setEingabe("Hier ist die User-Eingabe");
echo $myExample->getEingabe();
?>
Line Feed = 10 und Carriage Return = 13.Ah okay danke.
Noch eine kurze Frage: wie lautet der ASCII-Code für einen mit Enter erzeugten Zeilenumbruch?
class Foo {
private $additionalAttributes = array();
public function __set($property, $value) {
$this->additionalAttributes[$property] = $value;
}
public function __get($property) {
return $this->additionalAttributes[$property];
}
}