hi, i wanted to build a calender service (my first project), and i encountered an error, it is as follows:
Parse error: parse error, unexpected T_STRING in c:\inetpub\wwwroot\myorganizer\calender.php on line 42
and the code is:
<?php
$monthInfo = array(
"January" => 31,
"February" => 28,
"March" => 31,
"April" => 31,
"May" => 31,
"June" => 31,
"July" => 31,
"August" => 31,
"September" => 30,
"October" => 31,
"November" => 30,
"December" => 31);
$currentMonth = date('F');
//print("the current month right after first declaration is: $currentMonth");
>> the error line:::: $daysOfCurrentMonth = "$monthInfo[$currentMonth]";
//print("month info is {$monthInfo[$currentMonth]}");
?>