Perché usare lo string replace????
Codice PHP:
$regex = <<<EOT
<?php /*O:10:"Cache":3:{s:3:"dir";s:3:".//";s:4:"file";s:10:"config.php";s:6:"config";a:10:{s:6:"dbhost";s:9:"localhost";s:6:"dbuser";s:4:"root";s:6:"dbpass";s:5:"mysql";s:6:"dbtype";s:6:"mysqli";s:6:"prefix";s:9:"revokebb_";s:6:"dbname";s:6:"nukebb";s:12:"cache_active";s:1:"1";s:9:"cache_dir";s:1:"/";s:10:"cache_time";s:2:"-1";s:4:"lang";s:7:"italian";}}*/ ?>
EOT;
$regex = str_replace("<?php /*", "", $regex);
$regex = str_replace("*/ ?>", "", $regex);