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
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
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
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