Jump to content

How to set a margin on a Array


kpowers4

Recommended Posts

I have this code below that produces an array.  How do i write a line of code that allows me to set its margin or alignment?

 

foreach($food_categories  as $key => $subarray)        #20

{

  echo "<h3>$key</h3>";

    echo "<ul>";

    foreach($subarray as $type)

    {

      echo "<input type='radio' name='interest'

                    value='$type'><b>$type</b><br>\n";

    }

    echo "</ul>";

}

 

Link to comment
https://forums.phpfreaks.com/topic/214959-how-to-set-a-margin-on-a-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.