assignment and coercion

mcqspedia.com has 5 Question/Answers about Topic assignment and coercion

Ord ( ) function is used convert a

Ord ( ) function is used convert a
  • A. Integer type into a string
  • B. Integer type into an array
  • C. Float type into an array
  • D. Array type into a string
  • Correct Answer: Option A

Which data type is not valid in PHP for type casting?

Which data type is not valid in PHP for type casting?
  • A. Null
  • B. Resource
  • C. Float
  • D. Both A and B
  • Correct Answer: Option D

How many different ways are offered by PHP to manipulate a data type?

How many different ways are offered by PHP to manipulate a data type?
  • A. 2
  • B. 3
  • C. 4
  • D. 5
  • Correct Answer: Option B

Which of following type conversion behavior is offered by PHP?

Which of following type conversion behavior is offered by PHP?
  • A. Array to boolean
  • B. Null to number
  • C. Resource to string
  • D. All of them
  • Correct Answer: Option D

Floatval ( ) function will convert your argument in

Floatval ( ) function will convert your argument in
  • A. Integer
  • B. String
  • C. Float
  • D. None of them
  • Correct Answer: Option C