hello everyone, what is the way to replace Spaces With + icon using PHP. Suppose some text like "I Love PHP" will automatically converted like this way "I+Love+PHP" .. assuming a field has this text in a variable like> $text = I Love PHP so this variables text spaces will be replace with a + sign in a new variable like this> $text_plus=I+Love+PHP how to do it with PHP?
Thanks

Hello,
Try this script:

<?php
$text = "I Love PHP";
$text_plus = str_replace(" ", "+", $text);
echo $text_plus;
?>