+ 2
how replace one array to second array?
ex a{1,2,3,4} replace{1,0,1,0}
4 ответов
+ 3
$a = $replace;
0
please explain shortly francis ...any example
- 1
for ($i=0; $i<length($a); $i++) {$a[$i] = $replace[$i];} check 'for', maybe I write it wrong
- 1
your for is good except is count($a) if $a is an array