Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?
$a="text<img ||something||something_else||a_number|| >more text";
$array = explode("||",$a);
$c = $array[0] .
"src=\"".$array[1]."\"
alt=\"".$array[2]."\"
id=\"".$array[3]."\" " .$array[4];
echo $c; //nb you need to look at the source code to see this working properly (or use htmlspecialchars)
?>
while ($i=strpos($pagtekst,"<amg")) {
$j=strpos($pagtekst,">",$i);
$a=substr($pagtekst,$i,$j-$i);
$b=explode("||",$a);
$c="<img src=\"" . $b[1] . "\" onclick=\"location.href='" . $b[2] . "'\" id=\"P" . $b[3] . "\" style='cursor:pointer;'>";
if ($b[3]==0)
$pagtekst=$c . substr($pagtekst,0,$i) . substr($pagtekst,$j+1);
else
$pagtekst=substr($pagtekst,0,$i) . $c . substr($pagtekst,$j+1);
}
$text = "<amg || xx || yy || zz || >
Other stuff here
in here also <amg || 12341234 || 213432144sldflll is here || wqeewee || >";
// in a text into <img src=xx alt=yy id=zz >
$pattern = "/<amg \|\| (.*?) \|\| (.*?) \|\| (.*?) \|\| >/i";
$ntext= preg_replace($pattern,"<img src='\\1' alt='\\2' id='\\3'>",$text);
echo(htmlentities($ntext));
echo($ntext);