php 获取字符串斜杠里的数字
扔个三星炸死你
扔个三星炸死你 2017-02-13 11:29:58
0
1
1280

$str = 'zhongguo/8/3';
我想分别拿到
$a = 'zhongguo';
$b = '8';
$c = '3';
用PHP怎么样才能快速和准确拿到呢?

扔个三星炸死你
扔个三星炸死你

reply all (1)
巴扎黑

list($a, $b, $c)=explode('/', $str);

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!