creating arrays in php

mcqspedia.com has 5 Question/Answers about Topic creating arrays in php

A function that takes two integers as arguments and returns an array filled with all integers between them, is known as

A function that takes two integers as arguments and returns an array filled with all integers between them, is known as
  • A. Range ( ) function
  • B. Value ( ) function
  • C. Limit ( ) function
  • D. None of them
  • Correct Answer: Option A

Default numbering for an array indices starts from

Default numbering for an array indices starts from
  • B. 1
  • C. 2
  • D. 3
  • Correct Answer: Option A

User defined functions or may be built-in functions that’s make an array via methods internal to PHP is called as

User defined functions or may be built-in functions that’s make an array via methods internal to PHP is called as
  • A. Assignment arrays
  • B. Construct arrays
  • C. Functions returning arrays
  • D. All of them
  • Correct Answer: Option C

There are how many ways to create an array in PHP script

There are how many ways to create an array in PHP script
  • A. 1
  • B. 2
  • C. 3
  • D. 4
  • Correct Answer: Option C

Creating a new array from specification of its elements and associated keys, is known as

Creating a new array from specification of its elements and associated keys, is known as
  • A. Direct assignment
  • B. Array ( ) construct
  • C. Specifying indices
  • D. All of them
  • Correct Answer: Option B