Is there php function to convert Array to be like key=value in html, and if not what's the best practices ?
Input
$htmlOptions = array('class'=>'container');
...
<div <?php someFunction($htmlOptions); ?> ></div>
Output
<div class="container"></div>
foreach