<?php class t1{ private $mm="123456"; public $kk=3; const ZZ=100; private function echovar($var){ $text="aaaaaaa%saaaaaaaaaaaaa%uaaaaaaaa%uaaaa"; $outstr= sprintf($text,$this->mm,$this->kk,self::ZZ); return $outstr; } public function printstr(){ print "ggggggggg\n"; echo $this->echovar("ggg"); } } $nn=new t1(); $nn->printstr(); ?>
原创文章,作者:苏葳,如需转载,请注明出处:https://www.swmemo.com/562.html