I wonder if it is possible to append angular data into a php function. For example:
<li ng-repeat='item in items'><?php echo formatPeriode("{{ item.period }}") ?></li>
And here is the function in php
function formatPeriode($period){
$year = substr($period, 0, 4);
$month = substr($period, 4, 2);
return $month . ' ' . $year;
}
I know it looks awkward and it's not working anyway. But somehow I need a solution for it.