I have two array:
$divs = array('One','Two','Three','Four','Five','Six');
$ads = array ('Ad1', 'Ad2', 'Ad3');
I want merge like this:
$mix_divs = array_merge($divs, $reklama);
But, $divs must stay in same places and between this places I need to add random $ads array.
shuffle($ads);
Final input must be something like this:
$mix_divs = array('One','Two','Ad2','Three','Four','Ad3','Five','Six','Ad1');
or
$mix_divs = array('Ad2','One','Two','Ad1','Three','Four','Five','Ad3','Six');
$ads must be random inserted.
How can I do that? Thanks