For example, I would like to print total classes in the school
If.. that course has only one class, it will print "Total 1 Class" but if there are many classes in that course, it will print "Total 15 Classes"
So, I want to use syntax like
<?php echo "Total ".$attendance_setting->class_number.
if($attendance_setting->class_number==1) {echo " Class";} else {echo "
Classes";} ?>
Is it possible or I have to use If statement before I print it.
Thank you