Skip to content

Instantly share code, notes, and snippets.

@danjesus
Created December 22, 2011 22:19
Show Gist options
  • Select an option

  • Save danjesus/1512097 to your computer and use it in GitHub Desktop.

Select an option

Save danjesus/1512097 to your computer and use it in GitHub Desktop.
Unix Like Systems Diesel
/**
* Tratamento das classes para unix like systems
* @var Class
* @author Dan Jesus
*/
$class = ucfirst($class);
$class_explode = explode('_', $class);
if(sizeof($class_explode) > 1){
$class = ucfirst($class_explode[0]);
if($class_explode[1] != null){
$class .= '_' . ucfirst($class_explode[1]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment