同步迭代并打印两个相同大小数组中的值

发布于 2024-10-08 10:56:23 字数 321 浏览 0 评论 0原文

我想使用两个数组生成一个选择框,一个包含国家/地区代码,另一个包含国家/地区名称。

这是一个例子:

$codes = ['tn', 'us', 'fr'];
$names = ['Tunisia', 'United States', 'France'];

foreach( $codes as $code and $names as $name ) {
    echo '<option value="' . $code . '">' . $name . '</option>';
}

这个方法对我不起作用。有什么建议吗?

I want to generate a selectbox using two arrays, one containing the country codes and another containing the country names.

This is an example:

$codes = ['tn', 'us', 'fr'];
$names = ['Tunisia', 'United States', 'France'];

foreach( $codes as $code and $names as $name ) {
    echo '<option value="' . $code . '">' . $name . '</option>';
}

This method didn't work for me. Any suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(26

怪我闹别瞎闹 2024-10-15 10:56:23
foreach( $codes as $code and $names as $name ) { }

那是无效的。

您可能想要这样的东西...

foreach( $codes as $index => $code ) {
   echo '<option value="' . $code . '">' . $names[$index] . '</option>';
}

或者,将代码作为 $names 数组的键会更容易...

$names = array(
   'tn' => 'Tunisia',
   'us' => 'United States',
   ...
);
foreach( $codes as $code and $names as $name ) { }

That is not valid.

You probably want something like this...

foreach( $codes as $index => $code ) {
   echo '<option value="' . $code . '">' . $names[$index] . '</option>';
}

Alternatively, it'd be much easier to make the codes the key of your $names array...

$names = array(
   'tn' => 'Tunisia',
   'us' => 'United States',
   ...
);
太阳哥哥 2024-10-15 10:56:23

foreach 一次仅对一个数组进行操作。

按照数组的结构方式,您可以将它们array_combine()放入键值对数组中,然后foreach该单个数组:

foreach (array_combine($codes, $names) as $code => $name) {
    echo '<option value="' . $code . '">' . $name . '</option>';
}

或者如其他答案中所示,您可以改为硬编码关联数组。

foreach operates on only one array at a time.

The way your array is structured, you can array_combine() them into an array of key-value pairs then foreach that single array:

foreach (array_combine($codes, $names) as $code => $name) {
    echo '<option value="' . $code . '">' . $name . '</option>';
}

Or as seen in the other answers, you can hardcode an associative array instead.

顾挽 2024-10-15 10:56:23

使用 array_combine() 融合数组一起并迭代结果。

$countries = array_combine($codes, $names);

Use array_combine() to fuse the arrays together and iterate over the result.

$countries = array_combine($codes, $names);
尐偏执 2024-10-15 10:56:23

array_map 似乎对此也有好处

$codes = array('tn','us','fr');
$names = array('Tunisia','United States','France');

array_map(function ($code, $name) {
    echo '<option value="' . $code . '">' . $name . '</option>';
}, $codes, $names);

其他好处是:

  • 如果一个数组比另一个数组短,则回调会接收 null 值来填充间隙。

  • 您可以使用 2 个以上的数组进行迭代。

array_map seems good for this too

$codes = array('tn','us','fr');
$names = array('Tunisia','United States','France');

array_map(function ($code, $name) {
    echo '<option value="' . $code . '">' . $name . '</option>';
}, $codes, $names);

Other benefits are:

  • If one array is shorter than the other, the callback receive null values to fill in the gap.

  • You can use more than 2 arrays to iterate through.

抱着落日 2024-10-15 10:56:23

使用关联数组:

$code_names = array(
                    'tn' => 'Tunisia',
                    'us' => 'United States',
                    'fr' => 'France');

foreach($code_names as $code => $name) {
   //...
}

我相信使用关联数组是最明智的方法,而不是使用 array_combine() ,因为一旦有了关联数组,您就可以简单地使用 array_keys()< /code> 或 array_values() 以获得与之前完全相同的数组。

Use an associative array:

$code_names = array(
                    'tn' => 'Tunisia',
                    'us' => 'United States',
                    'fr' => 'France');

foreach($code_names as $code => $name) {
   //...
}

I believe that using an associative array is the most sensible approach as opposed to using array_combine() because once you have an associative array, you can simply use array_keys() or array_values() to get exactly the same array you had before.

一指流沙 2024-10-15 10:56:23

这对我有用:

$codes = array('tn', 'us', 'fr');
$names = array('Tunisia', 'United States', 'France');
foreach($codes as $key => $value) {
    echo "Code is: " . $codes[$key] . " - " . "and Name: " . $names[$key] . "<br>";
}

This worked for me:

$codes = array('tn', 'us', 'fr');
$names = array('Tunisia', 'United States', 'France');
foreach($codes as $key => $value) {
    echo "Code is: " . $codes[$key] . " - " . "and Name: " . $names[$key] . "<br>";
}
故人的歌 2024-10-15 10:56:23

像这样的代码是不正确的,因为 foreach 仅适用于单个数组:

<?php
        $codes = array('tn','us','fr');
        $names = array('Tunisia','United States','France');

        foreach( $codes as $code and $names as $name ) {
            echo '<option value="' . $code . '">' . $name . '</option>';
            }
?>

替代方案,更改为:

<?php
        $codes = array('tn','us','fr');
        $names = array('Tunisia','United States','France');
        $count = 0;

        foreach($codes as $code) {
             echo '<option value="' . $code . '">' . $names[count] . '</option>';
             $count++;
        }

?>

Your code like this is incorrect as foreach only for single array:

<?php
        $codes = array('tn','us','fr');
        $names = array('Tunisia','United States','France');

        foreach( $codes as $code and $names as $name ) {
            echo '<option value="' . $code . '">' . $name . '</option>';
            }
?>

Alternative, Change to this:

<?php
        $codes = array('tn','us','fr');
        $names = array('Tunisia','United States','France');
        $count = 0;

        foreach($codes as $code) {
             echo '<option value="' . $code . '">' . $names[count] . '</option>';
             $count++;
        }

?>
故人的歌 2024-10-15 10:56:23

走出去......

$codes = array('tn','us','fr');
$names = array('Tunisia','United States','France');
  • PHP 5.3+

    array_walk($codes, function ($code,$key) use ($names) { 
        echo '<选项值='' . $code . '">' 。 $names[$key] 。 '';
    });
    
  • PHP 5.3 之前

    array_walk($codes, function ($code,$key,$names){ 
        echo '<选项值='' . $code . '">' 。 $names[$key] 。 '';
    },$名称);
    
  • 或合并

    array_walk(array_combine($codes,$names), function ($name,$code){ 
        echo '<选项值='' . $code . '">' 。 $名称。 '';
    })
    
  • in select

    array_walk(array_combine($codes,$names), function ($name,$code){ 
        @$opts = '<选项值='' . $code . '">' 。 $名称。 '';
    })
    echo "<选择>$opts";
    

演示

Walk it out...

$codes = array('tn','us','fr');
$names = array('Tunisia','United States','France');
  • PHP 5.3+

    array_walk($codes, function ($code,$key) use ($names) { 
        echo '<option value="' . $code . '">' . $names[$key] . '</option>';
    });
    
  • Before PHP 5.3

    array_walk($codes, function ($code,$key,$names){ 
        echo '<option value="' . $code . '">' . $names[$key] . '</option>';
    },$names);
    
  • or combine

    array_walk(array_combine($codes,$names), function ($name,$code){ 
        echo '<option value="' . $code . '">' . $name . '</option>';
    })
    
  • in select

    array_walk(array_combine($codes,$names), function ($name,$code){ 
        @$opts = '<option value="' . $code . '">' . $name . '</option>';
    })
    echo "<select>$opts</select>";
    

demo

强者自强 2024-10-15 10:56:23

为什么不直接合并到一个多维关联数组中?看起来你正在做这个错误:

$codes = array('tn','us','fr');
$names = array('Tunisia','United States','France');

变成:

$dropdown = array('tn' => 'Tunisia', 'us' => 'United States', 'fr' => 'France');

Why not just consolidate into a multi-dimensional associative array? Seems like you are going about this wrong:

$codes = array('tn','us','fr');
$names = array('Tunisia','United States','France');

becomes:

$dropdown = array('tn' => 'Tunisia', 'us' => 'United States', 'fr' => 'France');
全部不再 2024-10-15 10:56:23

所有经过充分测试的

从数组创建动态下拉列表的 3 种方法。

这将从数组创建一个下拉菜单并自动分配其各自的值。

方法#1(普通数组)

<?php

$names = array('tn'=>'Tunisia','us'=>'United States','fr'=>'France');

echo '<select name="countries">';

foreach($names AS $let=>$word){
    echo '<option value="'.$let.'">'.$word.'</option>';
}
echo '</select>';
 
?>


方法#2(普通数组)

<select name="countries">

<?php

$countries = array('tn'=> "Tunisia", "us"=>'United States',"fr"=>'France');
foreach($countries as $select=>$country_name){
echo '<option value="' . $select . '">' . $country_name . '</option>';
}
?>

</select>


方法#3(关联数组)

<?php

$my_array = array(
     'tn' => 'Tunisia',
     'us' => 'United States',
     'fr' => 'France'
);

echo '<select name="countries">';
echo '<option value="none">Select...</option>';
foreach ($my_array as $k => $v) {
    echo '<option value="' . $k . '">' . $v . '</option>';
}
echo '</select>';
?>

All fully tested

3 ways to create a dynamic dropdown from an array.

This will create a dropdown menu from an array and automatically assign its respective value.

Method #1 (Normal Array)

<?php

$names = array('tn'=>'Tunisia','us'=>'United States','fr'=>'France');

echo '<select name="countries">';

foreach($names AS $let=>$word){
    echo '<option value="'.$let.'">'.$word.'</option>';
}
echo '</select>';
 
?>


Method #2 (Normal Array)

<select name="countries">

<?php

$countries = array('tn'=> "Tunisia", "us"=>'United States',"fr"=>'France');
foreach($countries as $select=>$country_name){
echo '<option value="' . $select . '">' . $country_name . '</option>';
}
?>

</select>


Method #3 (Associative Array)

<?php

$my_array = array(
     'tn' => 'Tunisia',
     'us' => 'United States',
     'fr' => 'France'
);

echo '<select name="countries">';
echo '<option value="none">Select...</option>';
foreach ($my_array as $k => $v) {
    echo '<option value="' . $k . '">' . $v . '</option>';
}
echo '</select>';
?>
‘画卷フ 2024-10-15 10:56:23

您可以使用 array_merge 组合两个数组,然后迭代它们。

$array1 = array("foo" => "bar");
$array2 = array("hello" => "world");
$both_arrays = array_merge((array)$array1, (array)$array2);
print_r($both_arrays);

You can use array_merge to combine two arrays and then iterate over them.

$array1 = array("foo" => "bar");
$array2 = array("hello" => "world");
$both_arrays = array_merge((array)$array1, (array)$array2);
print_r($both_arrays);
心清如水 2024-10-15 10:56:23

array_combine() 对我来说非常有用,同时组合来自多个表单输入的 $_POST 多个值以尝试更新购物车中的产品数量。

array_combine() worked great for me while combining $_POST multiple values from multiple form inputs in an attempt to update products quantities in a shopping cart.

停顿的约定 2024-10-15 10:56:23
<?php

$codes = array ('tn','us','fr');
$names = array ('Tunisia','United States','France');

echo '<table>';

foreach(array_keys($codes) as $i) {

     echo '<tr><td>';
     echo ($i + 1);
     echo '</td><td>';
     echo $codes[$i];
     echo '</td><td>';
     echo $names[$i];
     echo '</td></tr>';
}

echo '</table>';

?>
<?php

$codes = array ('tn','us','fr');
$names = array ('Tunisia','United States','France');

echo '<table>';

foreach(array_keys($codes) as $i) {

     echo '<tr><td>';
     echo ($i + 1);
     echo '</td><td>';
     echo $codes[$i];
     echo '</td><td>';
     echo $names[$i];
     echo '</td></tr>';
}

echo '</table>';

?>
以为你会在 2024-10-15 10:56:23

foreach 仅适用于单个数组。要单步执行多个数组,最好在 while 循环中使用each() 函数:

while(($code = each($codes)) && ($name = each($names))) {
    echo '<option value="' . $code['value'] . '">' . $name['value'] . '</option>';
}

each() 返回有关数组当前键和值的信息,并将内部指针加一,如果达到了则返回 false数组的末尾。该代码不依赖于具有相同键或具有相同类型元素的两个数组。当两个数组之一完成时循环终止。

foreach only works with a single array. To step through multiple arrays, it's better to use the each() function in a while loop:

while(($code = each($codes)) && ($name = each($names))) {
    echo '<option value="' . $code['value'] . '">' . $name['value'] . '</option>';
}

each() returns information about the current key and value of the array and increments the internal pointer by one, or returns false if it has reached the end of the array. This code would not be dependent upon the two arrays having identical keys or having the same sort of elements. The loop terminates when one of the two arrays is finished.

夜吻♂芭芘 2024-10-15 10:56:23

不要尝试 foreach 循环(仅当数组具有相同长度时)。

$number = COUNT($_POST["codes "]);//count how many arrays available
if($number > 0)  
{  
  for($i=0; $i<$number; $i++)//loop thru each arrays
  {
    $codes =$_POST['codes'][$i];
    $names =$_POST['names'][$i];
    //ur code in here
  }
}

Instead of foreach loop, try this (only when your arrays have same length).

$number = COUNT($_POST["codes "]);//count how many arrays available
if($number > 0)  
{  
  for($i=0; $i<$number; $i++)//loop thru each arrays
  {
    $codes =$_POST['codes'][$i];
    $names =$_POST['names'][$i];
    //ur code in here
  }
}
殊姿 2024-10-15 10:56:23

我举了一个简单的例子


class Parallel implements Iterator
{
 
    private int $index;
 
    private array $arrays;
 
    private int $countAny;
 
    public function __construct(array ...$arrays)
    {
        $this->countAny = count($arrays[0]);
        $this->arrays = $arrays;
    }
 
    #[\Override]
    public function current(): array
    {
        $return = [];
        foreach ($this->arrays as $array) {
            $return[] = $array[$this->index];
        }
        return $return;
    }
 
    #[\Override]
    public function next(): void
    {
        $this->index++;
    }
 
    #[\Override]
    public function key(): mixed
    {
        return $this->index;
    }
 
    #[\Override]
    public function valid(): bool
    {
        return $this->index < $this->countAny;
    }
 
    #[\Override]
    public function rewind(): void
    {
        $this->index = 0;
    }
}
 
 
$parallel = new Parallel(
    [1, 2, 3, 4],
    ['a', 'b', 'c', 'd'],
    ['london', 'paris', 'rome', 'istanbul'],
);
 
foreach ($parallel as [$number, $word, $city]) {
    echo PHP_EOL;
    printf('Number: %s, Word: %s, City: %s', $number, $word, $city);
}

i gave a simple example


class Parallel implements Iterator
{
 
    private int $index;
 
    private array $arrays;
 
    private int $countAny;
 
    public function __construct(array ...$arrays)
    {
        $this->countAny = count($arrays[0]);
        $this->arrays = $arrays;
    }
 
    #[\Override]
    public function current(): array
    {
        $return = [];
        foreach ($this->arrays as $array) {
            $return[] = $array[$this->index];
        }
        return $return;
    }
 
    #[\Override]
    public function next(): void
    {
        $this->index++;
    }
 
    #[\Override]
    public function key(): mixed
    {
        return $this->index;
    }
 
    #[\Override]
    public function valid(): bool
    {
        return $this->index < $this->countAny;
    }
 
    #[\Override]
    public function rewind(): void
    {
        $this->index = 0;
    }
}
 
 
$parallel = new Parallel(
    [1, 2, 3, 4],
    ['a', 'b', 'c', 'd'],
    ['london', 'paris', 'rome', 'istanbul'],
);
 
foreach ($parallel as [$number, $word, $city]) {
    echo PHP_EOL;
    printf('Number: %s, Word: %s, City: %s', $number, $word, $city);
}

执笔绘流年 2024-10-15 10:56:23

我通过这种方式解决了像你这样的问题:

foreach(array_keys($idarr) as $i) {
 echo "Student ID: ".$idarr[$i]."<br />";
 echo "Present: ".$presentarr[$i]."<br />";
 echo "Reason: ".$reasonarr[$i]."<br />";
 echo "Mark: ".$markarr[$i]."<br />";
}

I solved a problem like yours by this way:

foreach(array_keys($idarr) as $i) {
 echo "Student ID: ".$idarr[$i]."<br />";
 echo "Present: ".$presentarr[$i]."<br />";
 echo "Reason: ".$reasonarr[$i]."<br />";
 echo "Mark: ".$markarr[$i]."<br />";
}
心如荒岛 2024-10-15 10:56:23

您应该尝试将 2 个数组放入 singler foreach 循环中
假设我有 2 个数组
1.$item_nm
2.$item_qty

 `<?php $i=1; ?>
<table><tr><td>Sr.No</td> <td>item_nm</td>  <td>item_qty</td>    </tr>

  @foreach (array_combine($item_nm, $item_qty) as $item_nm => $item_qty)
<tr> 
        <td> $i++  </td>
        <td>  $item_nm  </td>
        <td> $item_qty  </td>
   </tr></table>

@endforeach `

You should try this for the putting 2 array in singlr foreach loop
Suppose i have 2 Array
1.$item_nm
2.$item_qty

 `<?php $i=1; ?>
<table><tr><td>Sr.No</td> <td>item_nm</td>  <td>item_qty</td>    </tr>

  @foreach (array_combine($item_nm, $item_qty) as $item_nm => $item_qty)
<tr> 
        <td> $i++  </td>
        <td>  $item_nm  </td>
        <td> $item_qty  </td>
   </tr></table>

@endforeach `
空‖城人不在 2024-10-15 10:56:23

我认为你可以这样做:

$codes = array('tn','us','fr');

$names = array('突尼斯','美国','法国');

foreach ($codes as $key => $code) {
    echo '<option value="' . $code . '">' . $names[$key] . '</option>';
}

它也应该适用于关联数组。

I think that you can do something like:

$codes = array('tn','us','fr');

$names = array('Tunisia','United States','France');

foreach ($codes as $key => $code) {
    echo '<option value="' . $code . '">' . $names[$key] . '</option>';
}

It should also work for associative arrays.

多情出卖 2024-10-15 10:56:23

我认为最简单的方法就是这样使用 for 循环:

$codes = array('tn','us','fr');
$names = array('Tunisia','United States','France');

for($i = 0; $i < sizeof($codes); $i++){
    echo '<option value="' . $codes[$i] . '">' . $names[$i] . '</option>';
}

I think the simplest way is just to use the for loop this way:

$codes = array('tn','us','fr');
$names = array('Tunisia','United States','France');

for($i = 0; $i < sizeof($codes); $i++){
    echo '<option value="' . $codes[$i] . '">' . $names[$i] . '</option>';
}
独夜无伴 2024-10-15 10:56:23

En Laravel Livewire

return view('you_name_view', compact('data','data2'));

@foreach ($data as $index => $data )

      <li>
          <span>{{$data}}</span>
          <span>{{$data2[$index]}}</span>
      </li>

@endforeach

En laravel Livewire

return view('you_name_view', compact('data','data2'));

@foreach ($data as $index => $data )

      <li>
          <span>{{$data}}</span>
          <span>{{$data2[$index]}}</span>
      </li>

@endforeach
温馨耳语 2024-10-15 10:56:23
if(isset($_POST['doors'])=== true){
$doors = $_POST['doors'];
}else{$doors = 0;}

if(isset($_POST['windows'])=== true){
$windows = $_POST['windows'];
}else{$windows = 0;}

foreach($doors as $a => $b){

现在你可以对每个数组使用 $a ....

$doors[$a]
$windows[$a]
....
}
if(isset($_POST['doors'])=== true){
$doors = $_POST['doors'];
}else{$doors = 0;}

if(isset($_POST['windows'])=== true){
$windows = $_POST['windows'];
}else{$windows = 0;}

foreach($doors as $a => $b){

Now you can use $a for each array....

$doors[$a]
$windows[$a]
....
}
£冰雨忧蓝° 2024-10-15 10:56:23

少数数组也可以这样迭代:

foreach($array1 as $key=>$val){ // Loop though one array
    $val2 = $array2[$key]; // Get the values from the other arrays
    $val3 = $array3[$key];
    $result[] = array( //Save result in third array
      'id' => $val,
      'quant' => $val2,
      'name' => $val3,
    );
  }

Few arrays can also be iterated like this:

foreach($array1 as $key=>$val){ // Loop though one array
    $val2 = $array2[$key]; // Get the values from the other arrays
    $val3 = $array3[$key];
    $result[] = array( //Save result in third array
      'id' => $val,
      'quant' => $val2,
      'name' => $val3,
    );
  }
青萝楚歌 2024-10-15 10:56:23

仅当两个数组具有相同的计数时,这才有效。我尝试在 laravel 中,将两个数组插入 mysql db

$answer = {"0":"0","1":"1","2":"0 ","3":"0","4":"1"};
$reason_id = {"0":"17","1":"19","2":"15","3":"19","4":"18"};

        $k= (array)json_decode($answer);
        $x =(array)json_decode($reason_id);
        $number = COUNT(json_decode($reason_id, true));
        if($number > 0)  
        {  
        for($i=0; $i<$number; $i++)
        {
            $val = new ModelName();
            $val->reason_id  = $x[$i];
            $val->answer  =$k[$i];
            $val->save();
        }
        }

This will only work if the both array have same count.I try in laravel, for inserting both array in mysql db

$answer = {"0":"0","1":"1","2":"0","3":"0","4":"1"};
$reason_id = {"0":"17","1":"19","2":"15","3":"19","4":"18"};

        $k= (array)json_decode($answer);
        $x =(array)json_decode($reason_id);
        $number = COUNT(json_decode($reason_id, true));
        if($number > 0)  
        {  
        for($i=0; $i<$number; $i++)
        {
            $val = new ModelName();
            $val->reason_id  = $x[$i];
            $val->answer  =$k[$i];
            $val->save();
        }
        }
权谋诡计 2024-10-15 10:56:23

为了避免通过索引引用值以及通过 array_combine() 使用一个数组的值作为键来避免数据损坏的风险,您可以使用 array_map() 在同一时间。

代码:(演示)

  1. 内爆一个由选项标签填充的数组,callabck 签名中没有参数:

    回声内爆(
             “\n”,
             数组映射(
                 fn() =>; vsprintf('<选项值=“%s”>%s', func_get_args()),
                 $代码,
                 $名字
             )
         );
    
  2. 通过使用扩展运算符累加传入的值来内爆一个由选项填充的数组:

    回声内爆(
             “\n”,
             数组映射(
                 fn(...$值) => vsprintf('<选项值=“%s”>%s', $values),
                 $代码,
                 $名字
             )
         );
    
  3. 转置两个或多个数组,然后迭代并打印二维数组中的行数据:

    foreach (array_map(null, $codes, $names) as $codeName) {
        vprintf('<选项值=“%s”>%s' . "\n", $codeName);
    }
    

使用 printf() 系列函数可以避免串联和插值。创建包含引号的字符串时,这可以帮助您的代码更具可读性。

To avoid referencing values by index and risking data corruption by using one array's values as keys via array_combine(), you can use array_map() to iterate two or more arrays at the same time.

Codes: (Demo)

  1. Implode an array populated with options tags without parameters in callabck signature:

    echo implode(
             "\n",
             array_map(
                 fn() => vsprintf('<option value="%s">%s</option>', func_get_args()),
                 $codes,
                 $names
             )
         );
    
  2. Implode an array populated with options by accumulating passed-in values with the spread operator:

    echo implode(
             "\n",
             array_map(
                 fn(...$values) => vsprintf('<option value="%s">%s</option>', $values),
                 $codes,
                 $names
             )
         );
    
  3. Transpose two or more arrays, then iterate and print the row data from the 2d array:

    foreach (array_map(null, $codes, $names) as $codeName) {
        vprintf('<option value="%s">%s</option>' . "\n", $codeName);
    }
    

Using printf() family functions voids concatenation and interpolation. When creating strings containing quotes, this can help your code to be more readable.

相权↑美人 2024-10-15 10:56:23

这对我有用

$counter = 0;
foreach($codes as $code)
{
$codes_array[$counter]=$code;
$counter++;
}
$counter = 0;
foreach($names as $name)
{
echo $codes_array[$counter]."and".$name;
$counter++;
}

it works for me

$counter = 0;
foreach($codes as $code)
{
$codes_array[$counter]=$code;
$counter++;
}
$counter = 0;
foreach($names as $name)
{
echo $codes_array[$counter]."and".$name;
$counter++;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文