From: [EMAIL PROTECTED]
Operating system: debian gnu/linux 2.2
PHP version: 4.0.6
PHP Bug Type: Arrays related
Bug description: can't access element[0] af an array
I have an array
$this->sbx[mch]
wich print_r function give me back so in this way:
Array
(
[0] => ~*
)
so I have one element. I have a function
give_string($i){
$value = $this->sbx[mch][$i];
return ($value);
}
that returns back only values from the second one ( [1], [2] ecc.)
I had to solve this way
function give_string($i){
if ($i == 0 ){
$t = each ($this->sbx[mch]);
$value = $t["value"];
reset($this->sbx[mch]);
}
else {
$value = $this->sbx[mch][$i];
}
}
Anyone met this problem?
Thanks and goodbye!
--
Edit bug report at: http://bugs.php.net/?id=13772&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]