Helix Installation   Getting Started   Reference Documentation   Global Functions   Quick Start
ModulesClassesFunctions
 

Function Reference

prepend_slash ( string [""] , force [false] )

Description
No description.
 
Parameters
optionalstring [""]
optionalforce [false]
 
Code
100  function prepend_slash($__string="", $__force=false)
101  {
102      if (!$__force && substr($__string,0,1)=="/")
103      {
104          return $__string;
105      }
106      else
107      {
108          return "/" . $__string;
109      }
110  }
Get Helix PHP Framework at SourceForge.net. Fast, secure and Free Open Source software downloads