You are here: RE: [PHP] Text between two tags « PHP « IT news, forums, messages
RE: [PHP] Text between two tags

Posted by mike bellerby on 11/10/05 17:14

try explode using <td align="right" class="yfnc_tabledata1"> then on array index[1] explode </td>
your answer will then be in index[0]

Hope this helps

Mike


========================================
Message Received: Nov 10 2005, 03:01 PM
From: "Normmy2k" <normmy@gmail.com>
To: php-general@lists.php.net
Cc:
Subject: [PHP] Text between two tags

Hello
I'm trying to extract some text between two tags:

Example
I have this string :
$text='<td></td>
<td align="right" class="yfnc_tabledata3"></td>
<td></td>
<td align="right" class="yfnc_tabledata2"></td>
<td></td>
<td align="right" class="yfnc_tabledata1">1234</td>
<td></td> <td></td> <td></td> <td align="right" class="yfnc_tabledata5"></td> ';

And I want to retrieve the number 1234 between <td align="right"
class="yfnc_tabledata1"> and </td>
Any idea??

Normmy.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация