I just want to make an array with the dates of a month. So the dates will start from 1 until 31 at most.
The obvious way, I know is a manual way:
$date_array = array( '1', '2', '3', '4', '5', '6', '7', ..., '31' );
But I'm looking for an automated way, like a simple for loop
, making me my desired automatically generated dates:
for($Idx=1;$Idx<32;$Idx++) {
var_dump($Idx);
}
Just need to put them in an array.
IMAGINATION
$my_date_array = makeArray( $Idx );
makeArray() - hah! :)
Possible?