Reply to Re: In search of a span of class.

Your name:

Reply:


Posted by Paul Lautman on 08/15/06 17:15

Rik wrote:
> Paul Lautman wrote:
>> Within a subsection of an HTML document (not a complete page), there
>> will be a few spans with the class "room_headings"
>> e.g.
>> <span class="room_headings"> Double
>> Room</span>
>>
>> Can folks suggest some nice ways of extracting all the text contents
>> of such spans into a list (for use in a drop-down select list)?
>
> preg_match_all('|<span[^>]*?class="room_headings"[^>]*?>(.*?)</span>|si',$html,$matches,
> PREG_PATTERN_ORDER);
> print_r($matches[1]);
>
> Grtz,

That's great, thanks Rik

[Back to original 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

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