Hello I'm new with php and need some help
I have string ($string) how to check it if starts with "http://" and if it doesn't change it so it does.
Thank you
Check string for "http://" and add it if it doesn't have it
Moderator: General Moderators
Re: Check string for "http://" and add it if it doesn't have
Use strncasecmp to check if something starts with something else. (Use the shorter length for the $len.)