0
MySQL 연결에서 채워지는 양식이 있습니다.mysql PHP 테이블 업데이트
<td><input type="text" name="Time1[]" value="<?php echo htmlentities($row_newNext['Time1'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
<td><input type="text" name="Time1Out[]" value="<?php echo htmlentities($row_newNext['Time1Out'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
내가 다른 페이지에 입력 배열을 통과,하지만 지금은 MySQL을 사용을 삽입하기 위해 어떻게 든 배열을 결합해야합니다 : 이름에서는 다음과 같습니다. 구조를 제대로 이해할 수 없습니다. array_combine은 올바르게 작동하지 않으며 병합도하지 않습니다. 어떤 도움을 주시겠습니까? 각에서
배열은 다음과 같습니다
//first array
Array(
[0]=>apple
[1]=>tree
[2]=>rock
)
//second array
Array(
[0]=>foo
[1]=>banana
[2]=>orange
)
내가 배열의 키를 기반으로 새로운 배열로 결합하려는. 그래서 새로운 배열은 다음과 같습니다
Array(
[0]=>apple
[1]=>foo
)
Array(
[0]=>tree
[1]=>banana
)
Array(
[0]=>rock
[1]=>orange
)
serialize()
implode()
explode()
은 우리에게 당신의 배열을 보여주고 merge' 방법'을 작동하지 않습니다. – Kermit