Is somehow possible to put javascript variable in eval echo? I tried a lot of possibilities, but everything crashed. It can work without Eval() function, but in that way, you can't quote "cal_days_in_month".
<script>
for (var i = 1; i < <?php eval("echo cal_days_in_month(CAL_GREGORIAN, ".'<script>variable</script>'." , 2022) + 1;");?>; i++) {
if (i==8 || i == 15 || i == 22 || i == 29) { //10 19 28
document.write("<tr>");
}
document.write("<td class='cc'>"+ i +"</td>");
}
document.write("<tr>"); //konec else závorka
</script>