PHP: remove `http://` from link title

后端 未结 7 1413
终归单人心
终归单人心 2020-12-31 17:34

I have a string that looks like:

$string = \'http://google.com\';

How can I remove the http:

相关标签:
7条回答
  • 2020-12-31 18:15
    $string = '<a href="http://google.com">http://google.com</a>';
    $var = explode('http://',$string);
    echo $var[2]; 
    
    0 讨论(0)
提交回复
热议问题