I am trying to use a function that I made to convert numbers into some words but the function give me an error whenever I am trying to use it in iteration.
$status = array('freie Plätze','ausgebucht','nicht mehr buchbar','Restplätze','auf Anfrage','entfällt');
I have numbers (0,1,2,3,4,5,6) which I am using function $status to convert
it working properly in this form -
$status[$zeile->status];
but when I tried to use in while loop iteration it gives an error -
$status($zeile->($i)status);
How will I modify this function to use it in the While loop or any iteration?