I need to build strings in PHP with every possible combination like
s5z-s4z-s3z-s2z-s1z
where the 's' then the number are always in the same position. the only difference is whether there is a z on the end or not.
So for example I would have
- s5z-s4z-s3z-s2z-s1
- s5z-s4z-s3z-s2z-s1z
- s5z-s4z-s3z-s2-s1
- s5z-s4z-s3z-s2z-s1
- s5z-s4z-s3z-s2-s1z
- s5z-s4z-s3-s2-s1z
- etc.
How would I go about doing that?