• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

PHP Arrays

PHP Arrays
PHP’s numerically indexed array begin with position ______.

1
-1
0
2

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What function computes the difference of arrays?

diff_array
array_diff
arrays_diff
diff_arrays

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code?
$names = array("Sam", "Bob", "Jack");
echo $names[0] . "is the brother of " . $names[1] . " and " . $names[1] . ".".$brother;

$brother
Sam is the brother of Bob and Bob)
Sam is the brother of Bob and Bob) $brother
Error

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
Which of the following are correct ways of creating an array?
1. state[0] = “karnataka”;
2. $state[] = array(“karnataka”);
3. $state[0] = “karnataka”;
4. $state = array(“karnataka”);

Only 1
2, 3 and 4
3 and 4
2 and 3

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following php code?
$states = array("karnataka" => array( "population" => "11,35,000", "captial" => "Bangalore"),"Tamil Nadu" => array( "population" => "17,90,000","captial" => "Chennai") );
echo $states["karnataka"]["population"];

karnataka 11,35,000
population 11,35,000
karnataka population
11,35,000

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What elements will the following script output?
$array = array (true => 'a', 1 => 'b');
var_dump ($array);

1 => 'b'
None
It will output NULL
True => 'a', 1 => 'b'

ANSWER DOWNLOAD EXAMIANS APP
MORE MCQ ON PHP Arrays

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑