It's working now, thank you. José Miguel Santibáñez A. escreveu: > > > Thanks a lot for your message Jony dos Santos Kostetzer and José Miguel > > Santibáñez, actually that @ was my mistake, I got to solve it this way: > > > > But I am not happy because if I do this: > > $words = array('PEACE','people'); > > $profile_text = "I would like to meet People to help me to work in the > > world Peace project."; > > $marked = MarkWords($profile_text, $words); > > > > This will return (marked of course) > > "I would like to meet people to help me to work in the world PEACE > > project." > > > > But I would like to keep the orignal word and change just the color. > > > try my second option: > > $patern[$i] = "@(".$words[$i].")@i"; > $replace[$i] = '<span style=\'color:white\'>$1</span>'; > > (with a very little change) > > I do: > Text : queremos paz en el mundo. Paz a los hombres de buena voluntad > Pattern: /(paz)/i > Replace: <b>$1</b> > Result : queremos <b>paz</b> en el mundo. <b>Paz</b> a los hombres de > buena > voluntad > > my 2 cents... > > -- > José Miguel Santibáñez > jms@xxxxxxxxx > > > PHP Data object relational mapping generator > http://www.metastorage.net/ > > > ------------------------------------------------------------------------ > YAHOO! GROUPS LINKS > > * Visit your group "php-objects > <http://groups.yahoo.com/group/php-objects>" on the web. > > * To unsubscribe from this group, send an email to: > php-objects-unsubscribe@xxxxxxxxxxxxxxx > <mailto:php-objects-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > > ------------------------------------------------------------------------ > >------------------------------------------------------------------------ > >Internal Virus Database is out-of-date. >Checked by AVG Free Edition. >Version: 7.1.371 / Virus Database: 267.13.13/197 - Release Date: 09/12/2005 > > > -- /*----------------------------*/ When you have a hammer Everything looks like a nail. /*----------------------------*/ PHP Data object relational mapping generator http://www.metastorage.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/