- str_replace: documentation ( source)
- strtolower: documentation ( source)
<?php
$_model_name = 'journey_events_model';
$_model_name = strtolower($_model_name);
$_model_name = str_replace('_model', '', $_model_name);
//$_model_name = singular($_model_name);
print $_model_name;