Home >Backend Development >PHP Tutorial >字符串分解,该怎么解决

字符串分解,该怎么解决

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 11:13:15928browse

字符串分解
{"status":1,"info":"ok","data":{"html":"

  • qweriqw eppa
    \n\t\t
    \n\t\t
  • qweriqw eppa
    \n\t\t
    \n\t\t
  • qweriqw eppa
    \n\t\t
    \n\t\t
  • qweriqw eppa
    \n\t\t
    \n\t\t ........

    如何读取每个li 内容 ,li里面大概是这个样式,我需要分解每个li 然后进行分析 。需要如何写。。。 需要代码。。谢谢


    ------解决方案--------------------
    $contents = ""; //图上的代码,我就不打上了

    preg_match_all("
    ------解决方案--------------------
    .*?
    ------解决方案--------------------
    is",$contents,$match);

    print_r($match);//显示出$match数组,也就是匹配的数据

    按这个改改
  • Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Previous article:for循环输出的语句,其中有的值要变动怎么处理Next article:怎么做一个tag标签页

    Related articles

    See more