|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-10-20 04:45 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 06:00:01 2025 UTC |
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!