Detect Text and URL separately from PHP string

前端 未结 0 1844
心在旅途
心在旅途 2021-02-08 15:54

I am using the following code to extrack URL from a PHP string. But what if I also want to get the text which comes before the URL.

String examples

  1. Samsung G
相关标签:
回答
  • 消灭零回复
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题