I have an array and an integer value.
$amenityIds = array('1','2','3','4','5');
$propertyId = 1;
What I want is the integer value to be added to the first array after each and every key like the code below.
array('1','1','2','1','3','1','4','1','5','1')
How do I achieve this?
1 Answer