Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php string starts with

//php check if first four characters of a string = http
substr( $http, 0, 4 ) === "http";
//php check if first five characters of a string = https
substr( $https, 0, 5 ) === "https";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #string #starts
ADD COMMENT
Topic
Name
1+4 =