Forum Moderators: coopster
i known how to do it by using substr(), but i think it may be have a better way than using substr().
I got a string as following:
$string="
this is part 1 of the string
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/6ZRax870WxQ"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/6ZRax870WxQ" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
this is a part 3 of a string";
and i want to get a part of string out from the above string, so the following result is what i want:
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/6ZRax870WxQ"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/6ZRax870WxQ" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>
Thanks