React.js
Angular
Ethical Hacking
Agile
AWS
BlockChain
Cassandra
Cloud
Salesforce
Scaled Agile
TOGAF
DevOps
GIT
Jenkins
Jira
Kibana
Linux
NGINX
Ansible
Artificial Intelligence
in PHP by

How is it possible to cast types in PHP?

Click here to read more about DevOps

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

Related questions

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