Re: [PHP-WIN] modifying a substring

2004-04-26 Thread Jason Barnett
William Candillon wrote: Use xml_parse_into_struct () : I was going to suggest preg_replace, but I kind of like xml_parse_into_struct(). But, won't they have a problem if there's no root tags wrapping the entire string? To show the code out the : ", $fp)== false) { ++$i $fp = fread($string

RE: [PHP-WIN] modifying a substring

2004-04-26 Thread William CANDILLON
Or: ', $string); Echo ($text[0]); ?> -Message d'origine- De : William CANDILLON [mailto:[EMAIL PROTECTED] Envoyé : lundi 26 avril 2004 21:16 À : [EMAIL PROTECTED] Objet : RE: [PHP-WIN] modifying a substring Use xml_parse_into_struct () : To show the code out t

RE: [PHP-WIN] modifying a substring

2004-04-26 Thread William CANDILLON
Objet : [PHP-WIN] modifying a substring Hi guys I want to do some fancy syntax highlighting so I added to my input text. Is there a way to take the entire input text, but only take the substring between those tags, do something to the substring and put it back into the original text? Than

[PHP-WIN] modifying a substring

2004-04-26 Thread John Yu
Hi guys I want to do some fancy syntax highlighting so I added to my input text. Is there a way to take the entire input text, but only take the substring between those tags, do something to the substring and put it back into the original text? Thanks in advance John