";print_r($v);echo"";}
function setget($name){
$withdash = $name;
$withoutdash = substr($name,1);
return
' public function get'.ucfirst($withoutdash).'()
{
return $this->'.$withdash.';
}
public function set'.ucfirst($withoutdash).'($'.$withdash.')
{
$this->'.$withdash.' = $'.$withdash.';
}
';
}
if(isset($_POST['submit'])){
$ar = explode("\n",trim($_POST['variables']));
$output = "";
foreach($ar as $item){
$output .= setget("_".trim($item));
}
print_a($output);
echo "back";
}
else{
?>
Jeweils ein Variablenname pro Zeile: