×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: elad os
Added: May 29, 2015 10:50 PM
Views: 9
Tags: name php machine
make-machine-name
  1.    function make_machine_name($str){
  2.       $str = trim($str);
  3.       $str = strtolower($str);
  4.       $str = str_replace(' ', '-', $str);
  5.       return $str;
  6.      
  7.    }
  8. }