I have a split and explode function which I'm using on my website to show data but for some reason when I place the code into my production file and run it nothing comes up. The same code works perfect when I test it on a local server though...
<?php
$page = file_get_contents("https://www.ato.gov.au/tax-
professionals/prepare-and-lodge/due-dates/");
$split = explode("</span><h1>", explode("</span></Div>",
$page)[0])[1];
$split = str_replace("/tax-professionals/",
"https://www.ato.gov.au/tax-professionals/", $split);
echo $split
?>