Question:What is displayed when the following script is executed?
<?php
define(myvalue, "10");
$myarray[10] = "Dog";
$myarray[] = "Human";
$myarray['myvalue'] = "Cat";
$myarray["Dog"] = "Cat";
print "The value is: ";
print $myarray[myvalue]."\n";
?>
 

A The value is: Dog 

B The value is: Cat 

C The value is: Human 

D The value is: 10 

E The value is: 10 

+ Answer
+ Explanation
+ Report
Total Preview: 781

Copyright © 2024. Powered by Intellect Software Ltd