$dsnStr='mysql://root:root@127.0.0.1:3306/test';
preg_match('/^(.?)://(.?):(.?)@(.?):([0-9]{1, 6})/(.*?)$/',trim($dsnStr),$matches);
想请教一下这个为啥匹配不出来,$natches是空数组,该怎么改才能匹配出来啊
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
学习是最好的投资!