[php]
define('DEDEADMIN', preg_replace("/[\/]{1,}/", '/', dirname(__FILE__) ) );
Note that the first in [\/] is actually an independent text character, and / means escaping the meaning of / into an ordinary text character
If you replace the content in the regular expression [] with [/] or [/\], it will not work. An error will be reported.
http://www.bkjia.com/PHPjc/477802.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477802.htmlTechArticle[php] span style=font-family:SimSun;define(DEDEADMIN, preg_replace(/[\/]{ 1,}/, /, dirname(__FILE__) ) );/span Note that the first one in [\/] is actually an independent text character, and...