If I have for example, some data from a form, and want to convert just a little piece of text in it, then how should I do?
I'm gonna use this for a forum to highlight some php code, and everything is working fine, except that I don't know how to make the highlighting stop. I know how to highlight everything after [php ], but I don't know how to stop the highlighting at [ /php]...
Anyone knows how to do?
This is how I get the text after [php ] to be highlighted:
<?php
$str = explode("[code=php]",$str);
# Of course I have a function that highlights the string,
# and it's working just fine!
?>