【发布时间】:2018-10-16 02:33:09
【问题描述】:
我想知道如何在 之间插入 self::$tag,谢谢
我试过 但它不起作用。
<?php
class model {
public static $tag = "p" ;
private static function surround($xx){
return "<self::$tag>".$xx." </self::$tag>" ;
} //here is the problem
public static function label($xx){
return self::surround("<label>".$xx."</label>") ;
}
}
?>
【问题讨论】:
标签: php static-methods