convert string with spaces to url php code example Example: convert space to 20 php rawurlencode("Your message goes here");