Codeigniter String helper trim_slashes()

Codeigniter String helper trim_slashes()

Syntax:

trim_slashes(text);

Parameters:
Text – specifies the string to be manipulated

Return type:
string.

Description:
Removes slashes at the beginning and the end of a string

Example:

$path = "/index.php/item/form/";
echo trim_slashes($path);

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.