Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OOP
#11
dass is ja ne normale function, oop in php5 sähe dann so aus

PHP Code:
abstract class Text {

   public static function 
textToHtml($string ) {
      
$string stripslashes($string);
      
$string htmlentities($string);
      
$string nl2br($string);

   return 
$string;
   } 
}

echo 
Text::textToHtml($_POST['eingabe']); 
Reply


Messages In This Thread
OOP - by Ephelian - 14.01.2009, 23:08
RE: OOP - by agent47 - 14.01.2009, 23:37
RE: OOP - by Ephelian - 14.01.2009, 23:48
RE: OOP - by agrafix - 17.01.2009, 13:38
RE: OOP - by agent47 - 14.01.2009, 23:56
RE: OOP - by Ephelian - 29.01.2009, 20:51
RE: OOP - by agent47 - 29.01.2009, 21:01
RE: OOP - by Ephelian - 29.01.2009, 21:43
RE: OOP - by agent47 - 29.01.2009, 21:52
RE: OOP - by Ephelian - 29.01.2009, 22:06
RE: OOP - by agent47 - 29.01.2009, 22:09
RE: OOP - by Ephelian - 29.01.2009, 22:14
RE: OOP - by agent47 - 29.01.2009, 22:23
RE: OOP - by jumpa - 30.01.2009, 13:54
RE: OOP - by agent47 - 30.01.2009, 14:49
RE: OOP - by agrafix - 30.01.2009, 20:13
RE: OOP - by agent47 - 30.01.2009, 22:17
RE: OOP - by Ephelian - 07.04.2009, 19:34
RE: OOP - by Milu2K - 07.04.2009, 19:44
RE: OOP - by Ephelian - 07.04.2009, 19:56
RE: OOP - by agrafix - 11.04.2009, 21:53



Users browsing this thread: 2 Guest(s)