Question:How is it possible to cast types in PHP? 

Answer The name of the output type have to be specified in parentheses before the variable which is to be cast as follows: * (int), (integer) – cast to integer * (bool), (boolean) – cast to boolean * (float), (double), (real) – cast to float * (string) – cast to string * (array) – cast to array * (object) – cast to object 

+ Report
Total Preview: 910
How is it possible to cast types in PHP?
Copyright © 2024. Powered by Intellect Software Ltd