$VAR= 5;
$VAR1=30;
Mathematical expression :- 5 * 60 * 60 + 30 * 60
i.e. 5 and 30 are $VAR and $VAR1 respectively.
how to use this manually in php code and store result in $RESULT
.
$VAR= 5;
$VAR1=30;
Mathematical expression :- 5 * 60 * 60 + 30 * 60
i.e. 5 and 30 are $VAR and $VAR1 respectively.
how to use this manually in php code and store result in $RESULT
.
This will work:
$result = $VAR * 60 *60 +$VAR1 *60;
The following link will give you an idea of order of preferance