Question:What variable reference would go in the spots indcated by ????? in the code segment below?
<?php

$msg = "The Quick Brown Foxed Jumped Over the Lazy Dog";

$state = true;
$retval = "";
for($i = 0; (isset(??????)); $i++) {
	if($state) {
		$retval .= strtolower(?????);
	} else {
		$retval .= strtoupper(?????);
	}
	
	$state = !$state;
}

print $retval;

?>
 

A $msg{$i} 

B ord($msg); 

C chr($msg); 

D substr($msg, $i, 2); 

E None 

+ Answer
+ Report
Total Preview: 798

Copyright © 2024. Powered by Intellect Software Ltd