PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- class class1{
- public $var1;
- function method1($string){
- function method2($string2){
- }
- function method3(){
- }
- function method4(){
- global $var2;
- }
- $this->var1=$string;
- $var2=$string;
- echo method2($string)."<br/>".method3()."<br/>".method4();
- }
- }
- $ob=new class1;
- $ob->method1("PHP is proud to announce TestFest 2010. TestFest is PHP's annual
- campaign to increase the overall code coverage of PHP through PHPT tests. During
- TestFest, PHP User Groups and individuals around the world organize local events
- where new tests are written and new contributors are introduced to PHP's testing
- suite.");
- ?>