Home >Computer Tutorials >Computer Knowledge >PHP angle to radian function

PHP angle to radian function

WBOY
WBOYforward
2024-01-14 16:36:211196browse

PHP angle to radian function

php angle function

abs --- Take the absolute value

acos --- Take the inverse cosine value

asin --- Take the inverse sine value

atan --- Take the inverse tangent value

atan2 --- Take the arctangent value of two variables

base_convert --- Carry method for converting values

bindec --- Binary to decimal

ceil --- Get the smallest integer value greater than the specified number

cos --- Get the cosine value

decbin --- Convert decimal to binary

dechex --- Decimal to hexadecimal

decoct --- Decimal to octal

deg2rad --- Convert a value from degrees to radial

exp --- Get the power of the natural logarithm

floor --- Get the largest integer value less than the specified number

getrandmax --- Get the maximum random value

hexdec --- Hexadecimal to decimal

log --- natural logarithm

log10 --- Logarithm with base 10

max --- Return the maximum value in the parameters

min --- Return the minimum value among the parameters

mt_rand --- Get random values

mt_srand --- Set random seed

mt_getrandmax --- Get the maximum random number

number_format --- Format number string

octdec --- Octal to decimal

pi --- Get the value of pi

pow --- Return the value of the power term

rad2deg --- Convert radial value to degree

rand --- Generate random values

round --- Take four hundred and fifty into

sin --- Get the sine value

sqrt --- Take the square root value

srand --- Set random seed

tan --- Get the tangent value

phphelp

if($username!=null){

if($password1!=$password2){

echo "Two inputs are inconsistent":

}else{

echo "ok!";

}

}else{

echo "Please enter your account number";

}

The original poster should know how to operate the database. . In fact, verifying these things should be placed in javascript, such as when changing the password

Help with a question about php arrays

$str = "Baby,Kids,200-300,300-500";

$str_a = explode(',',$str);

$$str_ = """;

$$str_ar = """;

$arr ​​= array();

foreach($str_a as $key=>$val){

if($key == 0 || $key == 1){

$str_ .= strtolower($val).",";

$str1_ = rtrim($str_,',');

}else{

$str_ar[] = explode('-',$val);

}

}

foreach($str_ar as $k=>$v){

foreach($v as $vv){

$arr[] = $vv;

}

}

$arr1['min'] = min($arr);

$arr1['max'] = max($arr);

print_r($str1_);

print_r($arr1);

The above is the detailed content of PHP angle to radian function. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:docexcel.net. If there is any infringement, please contact admin@php.cn delete