public function display(){
ob_start();
if(preg_match_all('/(?)/s',$this->content,$match){
$ _replace [] = ob_get_contents(); ]);
var_dump($i);
ob_end_flush() }
実行後、次の図に示す結果が表示されます。文字列は一致するはずですが、後で表示される結果が置換配列の値ではないのはなぜですか?
コードに必要なのはこれだけです
public function display() { ob_start(); eval('?>' . $this->content); $this->content = ob_get_clean();}