[Solved] Random no but unique from given no
[ad_1] If $row and $ar have an equal element count, I don’t see the reason for two loops. Your original code will do four iterations, and I’m not sure that’s what you want. (Judging by my uncertainty and the number of negative votes, you should probably update your question asap.) Code: (Demo) $arr=[’11’,’12’]; $ar=[‘1′,’2′,’3′,’4′,’5’]; // … Read more