• 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
What will be the output of the following PHP code ?
$a = array(12, 5, 2);
echo(array_product($a));

060
120
010
024

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code?
$fruits = array ("apple", "mango", "peach", "pear", "orange");
$subset = array_splice ($fruits, 2);
print_r ($fruits);

Array ( [0] => apple [1] => mango [2] => peach )
Array ( [0] => pear [1] => orange )
Array ( [0] => apple [1] => mango )
Error

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code ?
$a = array("a" => "Jaguar", "b" => "Land Rover", "c" => "Audi", "d" => "Maseratti");
echo array_search("Audi", $a);

d
a
c
b

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
Which in-built function will add a value to the end of an array?

array_unshift()
into_array()
inend_array()
array_push()

ANSWER DOWNLOAD EXAMIANS APP

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

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

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code?
$fruits = array ("apple", "orange", "banana");
echo (next($fruits));
echo (next($fruits));

appleapple
appleorange
orangebanana
orangeorange

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
↑