Reply to Re: Extract first 100 characters from Mysql field

Your name:

Reply:


Posted by J.O. Aho on 01/22/07 11:50

chris.huh wrote:

> So with ereg* you specify what things it should search for in a
> variable and then it removes them leaving just what is left in another
> variable. Then i apply the 'select first 100 characters; function to
> that. Is that right?

Seemed it was even easier than using ereg*

$stringnotags=substr(strip_tags($stringwithhtml),0,100);


http://www.php.net/strip_tags
http://www.php.net/manual/en/function.substr.php

--

//Aho

[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

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