Between tags

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smartic
    New Member
    • May 2007
    • 150

    Between tags

    i want function get the string data between tags ex:

    [HTML]<body>
    <p>This site are wonderful site</p>
    </body>[/HTML]

    in this code i need the string data between the body tag how can i do that
  • dafodil
    Contributor
    • Jul 2007
    • 389

    #2
    Please explain further....
    You can directly store those to a variable.
    [code=php]
    <?php
    $x="this site.....";
    ?>
    [/code]

    Comment

    • smartic
      New Member
      • May 2007
      • 150

      #3
      Thank you for replay if found the code

      [PHP]$text=substr("a ny text",strrpos(( "any text","<body>") );[/PHP]

      Comment

      • dafodil
        Contributor
        • Jul 2007
        • 389

        #4
        I didn't understand your problem that's why I haven't gone with the solution you needed. But anyway, nice to know you have solved it already. Post again if you have problems.

        Comment

        Working...