andism88 Posted September 8, 2011 Report Share Posted September 8, 2011 for ($skaitlis = 1; $skaitlis < 10; $skaitlis++) { function cats_.$skaitlis() { echo 'bla'.$skaitlis; } } un pēc tam izvadīt ar cats_1(); cats_2(); u.t.t. function cats ($skaitlis) { echo 'bla'.$skaitlis; } un pēc tam izvadīt ar cats(1); cats(2); u.t.t. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.