PHP coding challenge

Defining static variables

āœØ Your Task

Use a static variable to track and return the number of times the timescalled() method has been called.

āœļø PHP PHP version: 8.1
šŸ‘‰ Press "Run" and check the result below.
Test cases
Function timescalled() should return 1 if called once.
Function timescalled() should return 2 if called twice.