PHP How to create array value using for loop? -


PHP कैसे लूप के लिए एआरएआर का उपयोग करें?

  $ my_array = array (के लिए ($ I = 0; $ i & lt; 10; $ i ++) {$ i,}); गूंज '& lt; पूर्व & gt;'; print_r ($ my_array); गूंज '& lt; पूर्व / & gt;';  

  $ my_array = array (); ($ I = 0; $ i & lt; 10; $ i ++) के लिए {$ my_array [] = $ i; }  

Comments

Popular posts from this blog

scala - Play Framework - how to bind form to a session field -

c++ - Why does Visual Studio Release build break on non-executing code line -

Firefox reacting to JQuery setTimeout that doesn't apply -