|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
PHP
DETAILS
Question: How is it possible to cast types in PHP?
Answer: * (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
|
|
|
Category |
PHP Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7495 users |
Added on |
5/3/2016 |
Views |
66395 |
Rate it! |
|
|
Question:
How is it possible to cast types in PHP?
Answer:
* (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 Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is the most convenient hashing method to be used to hash passwords?
|
View Answer
|
|
what is the static variable in function useful for?
|
View Answer
|
|
What does the function get_magic_quotes_gpc() means?
|
View Answer
|
|
How can we check the value of a given variable is alphanumeric?
|
View Answer
|
|
How can we connect to a MySQL database from a PHP script?
|
View Answer
|
|
What is a cookie , explaing by code ?
|
View Answer
|
|
What does the URI used as an XML namespace name point to?
|
View Answer
|
|
Can I resolve the URI used as an XML namespace name?
|
View Answer
|
|
What are the valid values for xlink:actuate and xlink:show?
|
View Answer
|
|
How do you pass a variable by value?
|
View Answer
|
|
How To Create a Table?
|
View Answer
|
|
What are the different tables present in MySQL? Which type of table is generated when we are creating a table in the following syntax: create table employee(eno int(2),ename varchar(10))?
|
View Answer
|
|
Would I use print "$a dollars" or "{$a} dollars" to print out the amount of dollars in this example?
|
View Answer
|
|
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, whats the problem?
|
View Answer
|
|
How can I execute a PHP script using command line?
|
View Answer
|
|
What is the difference between mysql_fetch_object and mysql_fetch_array?
|
View Answer
|
|
How To Get the Uploaded File Information in the Receiving Script?
|
View Answer
|
|
What is meant by urlencode and urldecode?
|
View Answer
|
|
What are the differences between require and include, include_once?
|
View Answer
|
|
How To Write the FORM Tag Correctly for Uploading Files?
|
View Answer
|