例如:阿飞了哈34asogh倒萨
存入数组为:a[0] = '阿飞了哈'
a[1] = 'asogh倒萨'

解决方案 »

  1.   


    var_dump(preg_split ("/\d/", "阿飞了哈34asogh倒萨",-1,PREG_SPLIT_NO_EMPTY));
      

  2.   

    上面的正则挺好,我没那么厉害,不过我会其他的,
    判断字符,如果用integer转化后不等于0就加个符号作为标识,
    然后再explode('标识', $字符串);
      

  3.   

    这个不错,使用 preg_split 。
      

  4.   


    //我也来个
    $str='阿飞了哈34asogh倒萨';
    preg_match_all('/[^\d]+/i', $str, $matches);
    var_dump($matches);
      

  5.   

    $a = split('[0-9]+', '阿飞了哈34asogh倒萨
    ');
    print_r($a);Array ( [0] => 阿飞了哈 [1] => asogh倒萨 ) 
      

  6.   


    <?php
    $s = '阿飞了哈34asogh倒萨';
    preg_match_all('@[^\d]*(?=\d)|(?<=\d)[^\d]*@i', $s, $matches);
    print_r($matches);
    ?>