Check if variable starts with 'http'

前端 未结 6 1561
萌比男神i
萌比男神i 2020-12-03 20:56

I\'m sure this is a simple solution, just haven\'t found exactly what I needed.

Using php, i have a variable $source. I wanna check if $source starts with \'http\'.

6条回答
提交回复
热议问题