PHP和html中的反斜杠
来自三线的随记
在html当中
console.log('\\')
和PHP当中
console.log('\\')
console.log('\\\')
有不同结果,先记录着
html
<script>
account=new RegExp('1\\d{10}')
console.log(account)
</script>
PHP
html
<script>
account=new RegExp('1\\\d{10}')
console.log(account)
</script>