Codeigniter String helper reduce_double_slashes()

Codeigniter String helper reduce_double_slashes()

Syntax:

Reduce_double_slashes(text)

Parameters:
Text – specifies the string to be manipulated

Return type:
string.

Description:
Change the double slashes to single slashes, except for the word http://.

Example:

$path = "http://www.w3mentor.com//index.php";
echo Reduce_double_slashes($path);

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.