PHP Data type conversion is a forced conversion. The PHP Data types that can be converted include: & amp; bull; (int) and (integer): convert to integer & amp; bull; (float), (double), (real): convert to float type & bull; (string): convert to string & bull; PHP Data type conversion is a forced conversion. The PHP Data types that can be converted include: • (int) and (integer): converted to integer • (float), (double), (real): convert to float type • (string): convert to string • (bool), (boolean): convert to boolean type • (array ): convert to array • (object): There are three conversion methods to convert to object PHP Data types: • target types enclosed in parentheses before the variables to be converted • use three conversion functions of specific types: intval (), floatval (), strval () • Use settype (mixed var, string type), the first conversion method: (int) (bool) (float) (string) (array) (object) 1. Second conversion method: intval () floatval () strval () 1. Third conversion method: settype (); 1.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.