I have a value in variable as follows...
$variable = "chicken soup.jpg";
when i do the following, spaces are converted to a + symbol in the output
$body = "www.abc.com/" . $variable
mail($to, $subject, $body,$headers)
Output in mail received: www.abc.com/chicken+soup.jpg
But i want the output as below ? Please help
Expected Output : www.abc.com/chicken%20soup.jpg or www.abc.com/chicken soup.jpg
i tried using str_replace function but no luck