上面是一个config文件的内容,我想用shell脚本提取变量
<?phpif (!defined('IN_CONTEXT')) die('access violation error!');
class Config {
public static $mysql_ext = 'mysql';
public static $db_host = 'localhost';
public static $db_user = 'abc';
public static $db_pass = 'st';
public static $db_name = 'abc_123';
public static $port = '3306';
public static $mysqli_charset = 'utf8';
public static $tbl_prefix = 'bb32_';
public static $cookie_prefix = '28vDzA_';
public static $enable_db_debug = false;
}?>
上面是一个config文件的内容,我想用shell脚本提取变量
$db_name = 'abc_123';
$tbl_prefix = 'bb32_';
想提取的内容abc_123 ,bb32_
还请大师指点。
页:
[1]