Re: any ideas how to do it?

From: Date: Tue, 19 Dec 2000 22:28:31 +0000
Subject: Re: any ideas how to do it?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31043@lists.php.net to get a copy of this message
Shouldn't be too hard with php's ereg_replace() function: http://www.php.net/manual/function.ereg-replace.php Hope this helps. Joe Siim Einfeldt aka Itpunk wrote: > lets say that I have some long text in one database field, inside the > text I have some 'tags' like %7 and %-7...now, when I display the text > from this field(in php), eg echo $mydbarray["textcolumn"];, then it just > displays 'mytext%7somemoretext%-7mytext'...but I want to echo the text > between the 'tags' in some special way, in red for example. How? and if I > had more than on pair of tags... > > so that the text between the tags will be displayed in some special way > (EG %7 represents some css class) and all the other text would be > displayed in the normal way... > > I hope you get what I need. From the first look it seems pretty easy, but > when thinking about it...well, I couldn`t think of any possibilities:-) > > thanks > Siim > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#31043) next »