Interviewer And Interviewee Guide

Junior Developer PHP Interview Question:

Explain how is it possible to cast types in PHP?

Submitted by: Administrator
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
Submitted by:

Read Online Junior Developer PHP Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.