- printf: documentation ( source)
<?php
class test {
var $ptest ;
public function getPtest() {
return $this->ptest ;
}
public function setPtest($test) {
$this->ptest = $test ;
}
public function println() {
printf("%s" , $this->ptest);
}
}
$obj_test = new test() ;
$obj_test->ptest = 'aaaaa' ;
$obj_test->println();