What will be the output of the following PHP code?
<?php
$a = array(“a”=>”red”, “b”=>”green”, “c”=>”blue”);
echo array_shift($a);
print_r ($a);
?>
a) green
b) red
c) redArray( [c] => green [c] => blue )
d) redArray( [b] => green [c] => blue )
Answer: d
Explanation: The array_shift() function removes the first element from an array, and returns the value of the removed element.
Related Posts
___________ is a function of the particular enterprise and application in an on-premises deployment.
Cloud ________ are standardized in order to appeal to the majority of its audience.
The reputation for cloud computing services for the quality of those services is shared by _________
Network bottlenecks occur when ______ data sets must be transferred.
Which of the following captive area deals with monitoring?
Point out the wrong statement.
Security methods such as private encryption, VLANs and firewalls comes under __________ subject area
Join The Discussion