Reply to Re: take text from a string

Your name:

Reply:


Posted by artev on 11/13/07 16:54

Il Tue, 13 Nov 2007 16:49:00 +0100, Thomas Mlynarczyk ha scritto:

> Also sprach artev:
>
> To get just the text inside an <a> element, you can try something like this
> (untested):
>
> preg_match( '°\<a\s+[^>]+\>(.*?)\</a\>°', $text, $matches )

> $matches[1] will then contain the text.


work, thanks;
so this is the code for to extract from a link the text?
is a standard code or you have make for yourself ?




> But if you want to remove all HTML, have a look at PHP's strip_tags()
> function.
>
> Greetings,
> Thomas

[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

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