Be sure to pay attention to the PHP code quality
PHP Code Specification: Follow-up in:
Learn PHP projects.
http://monitor.blog.163.com/blog/static/175820268201262855042641/
PHP code specification to improve the quality of PHP 36 meters
http://www.oschina.net/question/1579_47231
http://blog.csdn.net/hujunqi/article/details/9396069
http://blog.csdn.net/initphp/article/details/7788003
Converts a string in the form of an array in a text document into arrays
Fast restore to the old interface
$sql = "Select Config_code from Table WHERE id=1";
$config _code = $this->dao->getvalue ($sql);
$config _code_str = Array ();
Eval ("\ $config _code_str = {$config _code};");
$config _code_str[' order_market_new '] = 0;
$config _code_str = Var_export ($config _code_str,true);
$code _str = mysql_real_escape_string ($config _code_str);
$sql = "Update table set config_code= ' $code _str ' where id=1";
$result = $this->dao->query ($sql);