32 echo --------TASK 1--------- br result sqrt sin sqrt cos echo resul

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
$a = 9.4;
$b = 0.32;
echo"--------TASK 1---------<br>";
$result = ($a - $b) / (sqrt(sin($a)) + sqrt($b) * cos($a) );
echo $result;
echo "<br>";
echo"--------TASK 2---------\n";
$number = 153331;
function isPalindrome($str){
$strrev=strrev($str);
if ($str==$strrev) return "palindrom";
else return "ne palindrom";
}
$res = isPalindrome($number);
echo $res;
echo"--------TASK 3---------\n";
$array = array(1,3,4,5,-4,2,-5);