TAILIEUCHUNG - PHP Developer's Dictionary- P29

PHP Developer's Dictionary- P29: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 Description The rand function returns a psuedo-random number. The number returned will range between 0 and rand_max or min and max if they are specified. The random number should be seeded before using this function. round Syntax double round double val Description The round function returns the resulting number after rounding val . The val parameter is rounded up when it has a last digit of 5 or greater and down when the last digit is less than 5. sin Syntax float sin float arg Description The sin function returns the sine of arg in radians. sqrt Syntax float sqrt float arg Description The sqrt function returns the square root of arg . echo sqrt 16 displays 4 IT-SC book 140 PHP Developer s Dictionary srand Syntax void srand int seed Description The srand function seeds the random number generator with seed . This allows rand to produce varying results. tan Syntax float tan float arg Description The tan function returns the tangent of arg in radians. Miscellaneous The functions in this section provide a variety of useful tools that don t lend themselves to a specific group of operations. Some of these tools include information regarding the current status of a connection with a browser along with information about that browser. Additionally some debugging and language constructs dealing with script execution are included. connection_aborted Syntax int connection_aborted void Description The connection_aborted function which was added in PHP and PHP returns true if the client has disconnected. This is usually due to the user clicking the Stop button on his browser. IT-SC book 141 PHP Developer s Dictionary connection_status Syntax int connection_status void Description The connection_status function which was added in PHP and PHP returns the connection status bit field. The result could indicate a normal status an aborted status a timeout status or a combination of both an aborted and timeout status in the case that

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.