如何在PHP中删除URL协议并从用户输入中斜杠
2022-08-30 10:12:45
示例用户输入
http://example.com/
http://example.com/topic/
http://example.com/topic/cars/
http://www.example.com/topic/questions/
我想要一个PHP函数来使输出像
example.com
example.com/topic/
example.com/topic/cars/
www.example.com/topic/questions/