Which array function checks if the specified key exists in the array? arrays_key_exists() array_key_exist() array_keys_exists() array_key_exists() TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$a = array("red", "green", "blue");<br/>array_pop($a);<br/>print_r($a); Array ( [0] => blue [1] => blue ) Array ( [0] => red [1] => blue ) Array ( [0] => green [1] => blue ) Array ( [0] => red [1] => green ) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$array = array("red", "green");<br/>array_push($array, "blue", "yellow");<br/>print_r($array); Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) Array ( [0] => red [1] => green ) Array ( [0] => blue [1] => yellow ) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$fname = array("Peter", "Ben", "Joe");<br/>$age = array("35", "37", "43");<br/>$c = array_combine($age, $fname);<br/>print_r($c); Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( Peter Ben Joe ) Array ( 35 37 43 ) Array ( [35] => Peter [37] => Ben [43] => Joe ) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$a = array(12, 5, 2);<br/>echo(array_product($a)); 024 120 010 060 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code ?<br/>$number = range(0, 5);<br/>print_r ($number); Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 ) Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 [5] => 0 ) Array ( [0] => 5 [1] => 5 [2] => 5 [3] => 5 [4] => 5 [5] => 5 ) Array ( [0] => 0 [5] => 5 ) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$a1 = array("a"=>"red", "b"=>"green", "c"=>"blue", "d"=>"yellow");<br/>$a2 = array("e"=>"red", "f"=>"green", "g"=>"blue");<br/>$result = array_diff($a1, $a2);<br/>print_r($result); Array ( [a] => red ) Array ( [e] => yellow ) Array ( [d] => yellow ) Array ( [c] => blue ) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$a1 = array("red", "green");<br/>$a2 = array("blue", "yellow");<br/>$a3 = array_merge($a1, $a2);<br/>$a4 = array("a", "b", "c", "d");<br/>$a = array_combine($a4, $a3);<br/>print_r($a); Array ( [0] => blue [1] => yellow [2] => red [3] => green ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [a] => blue [b] => yellow [c] => red [d] => green ) TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following PHP code?<br/>$face = array ("A", "J", "Q", "K");<br/>$number = array ("2","3","4", "5", "6", "7", "8", "9", "10");<br/>$cards = array_merge ($face, $number);<br/>print_r ($cards); Error Array ( [0] => A [1] => 2 [2] => J [3] => 3 [4] => Q [5] => 4 [6] => K [7] => 5 [8] => 6 [9] => 7 [10] => 8 [11] => 9 [12] => 10 ) Array ( [0] => 2 [1] => 3 [2] => 4 [3] => 5 [4] => 6 [5] => 7 [6] => 8 [7] => 9 [8] => 10 [9] => A [10] => J [11] => Q [12] => K ) Array ( [0] => A [1] => J [2] => Q [3] => K [4] => 2 [5] => 3 [6] => 4 [7] => 5 [8] => 6 [9] => 7 [10] => 8 [11] => 9 [12] => 10 ) TRUE ANSWER : ? YOUR ANSWER : ?
Array values are keyed by ______ values (called indexed arrays) or using ______ values (called associative arrays). Of course, these key methods can be combined as well. Even number, string Float, string Integer, string Positive number, negative number String, Boolean TRUE ANSWER : ? YOUR ANSWER : ?