Hi pradeep
i want to typecast a string to inteiger ,
c se this code
$date = new DateTime($jdate);

$startDay =(integer)date("d", strtotime($jdate));


//echo $jdate."*****".$startDay ;

//$date->modify("+1 day");
//echo $date->format("Y-m-d");
if($startDay<15) $Balance=1.5;
else if($startDay>14 && $startDay< 25) $Balance=1;
else if($startDay>24 && $startDay<32) $Balance=0.5;

giving an error on last line, error message is ,
parse error, unexpected '<' in C:\\Program Files\\sugarcrm-4.2.0c\\htdocs\\sugarcrm\\modules\\HR\\submitEmplo yee.php on line 103,

please suggest