▼ Show 1 Answer

0 votes
by

The name of the output type has 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

Learn More with Madanswer

Related questions

0 votes
asked Jun 23, 2019 in PHP by SakshiSharma
...