开发者

How to pass array element one by one in text box in php

i am Reading the file contents and passed it in explod function("=",$string) ,it gives me two array parts[0].parts[1] seprated by = .parts[1] array displays all the values of the variable .now how c开发者_Python百科an i use these values one by one to pass in the text box .The variable value comes in this way (value1 value2 value3 value4...)

my code also throws the undefined offset :1 notice when i prints the parts[1]arrray


if you have array values iterate over the array like


<?
foreach($array1 as $arr)
{
?>
<input type=test value= />
<?
}
?>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜