summaryrefslogtreecommitdiffstats
path: root/user_guide
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-07-12 14:49:54 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-07-12 14:49:54 +0200
commit0851530669824b8d5375dc24d5579b9cc5d746ef (patch)
treec686a6cbc016f97ae81d167743af70d3035419a9 /user_guide
parent7dcd7a3aa4b145fc8a040c16e7c4de9ea35fd5cf (diff)
added reduce_double_slashes() and trim_slashes() to docs
Diffstat (limited to 'user_guide')
-rw-r--r--user_guide/helpers/string_helper.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/user_guide/helpers/string_helper.html b/user_guide/helpers/string_helper.html
index 0858b78e9..df7e02ffa 100644
--- a/user_guide/helpers/string_helper.html
+++ b/user_guide/helpers/string_helper.html
@@ -121,10 +121,15 @@ Returns a fixed length 33 character string.</li>
echo repeater($string, 30);</code>
<p>The above would generate 30 newlines.</p>
-
-
-
-
+<h2>reduce_double_slashes()</h2>
+<p>onverts double slashes in a string to a single slash, except those found in http://. Example: </p>
+<code>$string = &quot;http://www.some-site.com//index.php&quot;;<br />
+echo reduce_double_slashes($string); // results in &quot;http://www.some-site.com/index.php&quot;</code>
+<h2>trim_slashes()</h2>
+<p>Removes any leading/traling slashes from a string. Example:<br />
+ <br />
+ <code>$string = &quot;/this/that/theother/&quot;;<br />
+echo trim_slashes($string); // results in this/that/theother</code></p>
</div>
<!-- END CONTENT -->