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

字符串分解,该怎么解决

WBOY
Release: 2016-06-13 12:54:48
Original
751 people have browsed it

字符串分解
{"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数组,也就是匹配的数据

    按这个改改
  • Related labels:
    source:php.cn
    Previous article: 这段IF语句有什么有关问题吗 Next article: 问个关于FASTCgi的有关问题
    Statement of this Website
    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
    Latest Articles by Author
    Latest Issues
    Related Topics
    More>
    Popular Recommendations
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template