How can a PHP script be tested locally using XAMPP's Task Manager?

To test a PHP script locally using XAMPP's Task Manager, you can create a new task that runs the PHP script. This can be done by opening the XAMPP Control Panel, clicking on the Task Manager button, and adding a new task with the appropriate settings to run the PHP script.

<?php
// Sample PHP script to be tested
echo "Hello, XAMPP!";
?>