PHP에서 일반 텍스트 URL을 HTML 하이퍼 링크로 변환하는 방법이 있습니까? 나는 다음과 같은 형식의 URL을 변환해야합니다PHP에서 일반 텍스트 URL을 HTML 하이퍼 링크로 변환
http://example.com
http://example.org
http://example.gov/
http://example.com?q=sometext&opt=thisandthat
http://example.com#path
http://example.com?q=querypath#path
http://example.com/somepath/index.html
https://example.com/
https://example.org/
https://example.gov/
https://example.com?q=sometext&opt=thisandthat
https://example.com#path
https://example.com?q=querypath#path
https://example.com/somepath/index.html
http://www.example.com/
http://www.example.org/
http://www.example.gov/
http://www.example.com?q=sometext&opt=thisandthat
http://www.example.com#path
http://www.example.com?q=querypath#path
http://www.example.com/somepath/index.html
https://www.example.com/
https://www.example.org/
https://www.example.gov/
https://www.example.com?q=sometext&opt=thisandthat
https://www.example.com#path
https://www.example.com?q=querypath#path
https://www.example.com/somepath/index.html
www.example.com/
www.example.org/
www.example.gov/
www.example.com?q=sometext&opt=thisandthat
www.example.com/#path
www.example.com?q=querypath#path
www.example.com/somepath/index.html
example.com/
example.org/
example.gov/
example.com?q=sometext&opt=thisandthat
example.com/#path
example.com?q=querypath#path
example.com/somepath/index.html
php를 사용하여 구문 분석하려는 외부 파일에서 오는 것입니까? – Sarfraz
링크에서 무엇을 읽고 싶습니까? 이 링크는 파일 또는 배열 또는 다른 것입니까? –
텍스트에서 이러한 URL을 찾고 전체 URL로 변환하고 HTML 링크로 바꾸는 방법을 찾고 계신 것 같군요. 맞습니까? – Gumbo