I need to go through a string and within this string will come tags of imagens
I need to select the first one.
I am using strstr()
but it is not working.
$img = strstr($texto, '%img');
echo $img;
How do I get the goal right?
The reason for using this question is because I'm saving a post where I give option to save with image together, but I need to preview this post where it does a thumbnail with the image. So I need to go through all of this string so that I can identify which image relates to that post so I can go to the folder and identify to mount the thumbnail.