space to %20 php code example Example: convert space to 20 php rawurlencode("Your message goes here");