We have an array with the names:
array(
Robin Hood,
Little John,
Maid Marion,
Friar Tuck,
Will Scarlet
)
The first word inside each element should be moved to the end of that element.
We should get the following:
array(
Hood Robin,
John Little,
Marion Maid,
Tuck Friar,
Scarlet Will
)
How can we do this?
Better if we use foreach()
Thank.
James source
share