I've used unset() for the 0 element of the array (to get rid of it)...
<?php
$desiredDay = intval(readline());
$days = [
'Dummy',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
'Sunday'
];
unset($days[0]);
if (isset($days[$desiredDay])) {
echo $days[$desiredDay];
} else {
echo 'Invalid Day!';
}