hi how is everybody doing? i hope you are all doing well. i have a problem with some php code, i am trying to split text and images from an html page and displaying the text again, but sometimes the php splits the html code and images are not display right i get this weird word such as
add-plugins-paintnet-1.2-800x800
3857cff9733e6a.jpg" style="border-width: 1px; border-color: #000000; border-style: solid; margin: 4px auto 5px; display: block;" />
so i am trying to skip over the images but i have tried over the past 4 hours and nothing here is my code
[php]<? php
$article =$this->article_>text;
$countchars=strlen($article);
$divide=$countchars/2;
$firstpart=substr($article,0,$divide);
$secondpart=substr($article,$divide);
//i keep changing the
variable to and $image and many others but nothing seems to work
$findTag = strpos($secondpart, "
");
$var = $divide + $findTag
$firstpart = substr($article, 0, $var);
$secondpart = substr($article, $var);
?> [/php]
any help would be greatly appreciated.
Thanks