PHP Developer's Dictionary- P28

PHP Developer's Dictionary- P28:PHP is an open source, server-side, HTML-embedded scripting language used to create dynamically generated Web pages. With an easy-to-use syntax and a large, extensible library of modules, PHP brings together the best of Perl, C++, and other languages. | PHP Developer s Dictionary getrandmax Syntax int getrandmax void Description The getrandmax function returns the maximum value that can be returned by a call to rand . hexdec Syntax int hexdec string hex string Description The hexdec function returns the decimal equivalent of the hexadecimal number represented by hex_string . The largest number that can be converted is 7fffffff in hex which equates to 2 147 483 647 in decimal. log Syntax float log float arg Description The iog function returns the natural log of arg . echo log returns 1 log10 IT-SC book 135 PHP Developer s Dictionary Syntax float log10 float arg Description The iogi0 function returns the base 10 logarithm of arg . echo log10 100 returns 2 max Syntax mixed max mixed argl mixed arg2 mixed argn Description The max function examines the parameter list and returns the numerically highest parameter. If argl is an array the highest value in the array will be returned. If argl is an integer string or double you need at least two parameters and max returns the largest of these values. You can compare an unlimited number of values. If one or more of the parameters are of type double all the parameters will be treated as doubles and the return value will be a double. If none of the parameters is a double they all will be treated as integers and the return value will be an integer. min Syntax mixed min mixed argl mixed arg2 mixed argn Description The min function examines the parameter list and returns the numerically lowest parameter. If argl is an array the lowest value in the array will be returned. If argl is an integer string or double you need at least two parameters and min returns the smallest of these values. You can compare an unlimited number of values. IT-SC book 136 PHP Developer s Dictionary If one or more of the parameters are of type double all the parameters will be treated as doubles and the value returned will be a double. If none of the parameters is of type double they all will be .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.