2
I have a variable named $text
where text is stored that the user writes.
`$text = "Hahahha that cool this site, I was able to answer all my questions there /"
`
What I need?
I have a function named makelink($url); that mounts a preview of the content of the link. That is, I need to create a function that will catch the FIRST text link and play it in this function, the function will create a preview of the link and will return an output with the result in HTML, after playing the link in the function I need that the output of this goes to the end of the text.
That is to say:
$textfinal = "Hahahha que legal esse site, consegui responder todas minhas perguntas lá /" *PREVIA DO LINK*
I see it as a good alternative to make a filter with regex or something like (not my area) to be able to capture all kinds of link..
Yes, and how to perform the function itself?
– Vinicius Eduardo