font-weight: 400; null; 'discount' => 5500, width: 10px; php arrays random while-loop shuffle. Using while loop with PHP arrays. flex-direction: column; } padding: 8px 24px 7px; ], color: #ffffff; While loop runs till the given condition is true. .products-title { top: 13px; .navigation-list a:hover, margin: 16px -20px 0 0; ], margin: 4px 0 0 -4px; font-weight: 400; } I hope this comes in useful, now go do some cool stuff with some loops! .popular-products { line-height: 14px; .logo-link img { ?>,
padding: 0; .catalog, 'title' => 'Pinas paperclips', 'colors' => ['red'], 'type' => 'lighting', position: relative; Adding an element to the array by index, 6. The reset function is invoked to restore the array pointer to the first element in the array. You don’t have to mess with resetting the array and the PHP code is simpler. margin-bottom: 40px; position: relative;