Sure. You can use [man]str_replace/man to replace the underscore with a regular space (" "). Then you can use [man]ucwords/man to uppercase the first letter of each word.
<?php
$var = 'apa_calda';
$var2 = ucwords(str_replace('_', ' ', $var));
echo $var2;