Loading video...
Type Casting
- PHP a ‘weakly-typed’ language meaning that a variable’s data type is determined by the data value assigned to it.
- Type casting is the process of implicitly or explicitly converting a data value of one data type to another data type.
- PHP's 'type juggling', or automatic type conversion , is a form of implicit type casting.
- Explicit type casts can be done by using parentheses syntax or through the settype() function.
- settype() permanently changes a variable’s type. Casts using parentheses syntax do not.
- Additional Resources:
Type Casting
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

































Start Learning Now
Our free lessons will get you started (Flash® 10 required).
Sign up for Educator.comGet immediate access to our entire library.
Features Overview