psUnderscore() Replaces Spaces with Underscores '_'
Description:
Replaces all spaces with an underscore '_' I always seam to use str_replace(" ","_",$str), tired of typing it.
Usage:
$str = psUnderscore($needle);
Example:
$str = psUnderscore("some code"); // returns "some_code"
Code:
function psUnderscore($str) { $str = str_replace(" ","_",$str); return $str; }
Changlelog:
|
|