I am not that novice with php, but this thing is messing with me since last few days
What my requirement is that i ahve aparagraph of text, in those there are "<br />" terms appears two times simultaneously.
So i have to remove those term with one
let me give you an example
when i see source of above text it gives some text as belowWell again, solve your first problem.
It depends on what is meant by "extract" but good practice for solving problem two, would be to copy the substring from str to interesting_part for problem one, and then physically moving the rest of the string to make room for the new word in problem two.
When you've created sufficient space, go ahead and overwrite the old word by copying the new one in.
xxxxxxxxxxxxxx<br />
<br />
xxxxxxxxxxxx
i want to replace those two occurances with one
i have use str_replcae function but doesnt help
can anyone help me in solving this, what can be the silly mistake i am doing?
Regards
Hemanshu
http://tutorialsforu.info