Issues with arrays in the watch window
Posted: June 11th, 2013, 12:48 am
Hi there,
I have the following code:
In the watch window, when I put in $array[5] it shows the correct value of 'six', but when I put in $array[$i] it shows the entire array:
When I echo $array[$i] it returns the correct value of 'six' to the browser.
This would seem to be an issue?
Regards,
Scott
I have the following code:
- Code: Select all
$i = 5;
$array = array('One','Two','Three','Four','Five','Six','Seven','Eight','Nine','Ten');
echo($array[$i]);
In the watch window, when I put in $array[5] it shows the correct value of 'six', but when I put in $array[$i] it shows the entire array:
When I echo $array[$i] it returns the correct value of 'six' to the browser.
This would seem to be an issue?
Regards,
Scott