What are the three possible ways to display a subset of a sports table array in PHP?

To display a subset of a sports table array in PHP, you can use three possible methods: 1. Using array_slice() function to extract a portion of the array based on the starting index and length. 2. Looping through the array and checking for a specific condition to display only the desired subset of data. 3. Using array_filter() function to filter out elements that meet a certain criteria and display only those elements. Example PHP code snippet using array_slice():

$sportsTable = array(
    array("Team" => "Team A", "Points" => 25),
    array("Team" => "Team B", "Points" => 20),
    array("Team" => "Team C", "Points" => 18),
    array("Team" => "Team D", "Points" => 15),
    array("Team" => "Team E", "Points" => 12)
);

$subset = array_slice($sportsTable, 1, 3);

foreach($subset as $team){
    echo $team["Team"] . " - " . $team["Points"] . "<br>";
}