Skip to content

Philipps Blog

my personal Site of Things

  • About
  • Friends
  • Home
  • About

Day: August 28, 2007

Output an array as a bullet list.

2007-08-282007-08-28 PhilippLeave a comment

This function parses an array recursive an creates a bullet list. Maybe is is usefull for somebody


highlight_string(‘
\n\r”;
foreach($var as $key => $part)
$string .= “

  • “.$key.” = “.var_string($part).”
  • \n\r”;
    $string .= “

    \n\r”;
    return $string;
    }else{
    return $var;
    }
    }
    ?>
    ‘);

    Posted in PHP, Snippets
    Proudly powered by WordPress | Theme: Libre 2 by Automattic.
     

    Loading Comments...