Display an array in html table

前端 未结 4 1442
野的像风
野的像风 2021-01-03 13:06

I have this array:

Array
(
    [page] => Array
        (
            [0] => add
            [1] => edit
            [2] => delete
            [3]         


        
4条回答
  •  梦谈多话
    2021-01-03 13:36

    sorry i didn't tag as PHP... here is the code of my last try

    echo "";    
    for($i=0;$i";
        foreach($array as $key=>$value)
        {
            echo "";
        }
        echo "";
    }
    echo "
    ".$array[$key][$i]."
    ";

    but anyway, JYelton answer worked pretty well, thank you =D

提交回复
热议问题