1--TEST-- 2Test variations in usage of deg2rad() 3--INI-- 4precision = 10 5--FILE-- 6<?php 7/* 8 * Function is implemented in ext/standard/math.c 9*/ 10 11 12//Test deg2rad with a different input values 13 14$values = array(23, 15 -23, 16 2.345e1, 17 -2.345e1, 18 0x17, 19 027, 20 "23", 21 "23.45", 22 "2.345e1", 23 "1000", 24 true, 25 false); 26 27for ($i = 0; $i < count($values); $i++) { 28 $res = deg2rad($values[$i]); 29 var_dump($res); 30} 31 32?> 33--EXPECT-- 34float(0.40142572795869574) 35float(-0.40142572795869574) 36float(0.40927970959267024) 37float(-0.40927970959267024) 38float(0.40142572795869574) 39float(0.40142572795869574) 40float(0.40142572795869574) 41float(0.40927970959267024) 42float(0.40927970959267024) 43float(17.453292519943293) 44float(0.017453292519943295) 45float(0) 46