preg_replace_callback
Posted: Sun Feb 22, 2009 3:33 pm
Hi,
When I'm using preg_replace(), it perfectly replace the patterns I want to replace in the correct manners.. BUT when using preg_replace_callback(), to replace a certain pattern with call on function, then what the function prints is appearing at the top of of the text, not in the middle of the text where it should be..
Why is this happening, and may I fix it?
When I'm using preg_replace(), it perfectly replace the patterns I want to replace in the correct manners.. BUT when using preg_replace_callback(), to replace a certain pattern with call on function, then what the function prints is appearing at the top of of the text, not in the middle of the text where it should be..
Why is this happening, and may I fix it?