/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
$count = 0;
foreach ($images as $image) {
$count++;
if ($odd_even % 2) {
$class = 'odd';
} else {
$class = 'even';
}
$content .= '<li class="'.$class.'">';
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                