0

I have a function like this:

$points = $this->get_fixed_points_to_earn();

that is fetching the value of get_fixed_points_to_earn.

I have another function for this:

$days = $this->get_fixed_points_for_day();

I want $points to run for $days number of days.

But when I am making the output like this:

$points * $days

it is showing the total output at once. But I want $point to repeat for $days number of days. Anything else I am missing here?

Thank you.

1
  • This will help you to get started. Please note, for more reliable scheduled tasks, use Server's cron.
    – Abhik
    Jul 9 at 17:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.