By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,972 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

Between tags

100+
P: 150
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
Aug 2 '07 #1
Share this Question
Share on Google+
3 Replies


dafodil
100+
P: 392
Please explain further....
You can directly store those to a variable.
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. $x="this site.....";
  3. ?>
  4.  
Aug 2 '07 #2

100+
P: 150
Thank you for replay if found the code

[PHP]$text=substr("any text",strrpos(("any text","<body>"));[/PHP]
Aug 2 '07 #3

dafodil
100+
P: 392
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.
Aug 2 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.