alexarpad2003 Posted June 3, 2011 Report Share Posted June 3, 2011 $a=array(1=>'1', 2=>'2', 3=>'3', 4=>'4', 5=>'5', ......, 100=>'100');Cum pot scrie variabila $a pentru a imi genera array-ul de mai sus ? Fara sa fiu nevoit sa scriu toate cheile si valorile pana la 100? Pentru generarea numerelor as folosi ($i=1; $i<=100; $i++) Quote Link to comment Share on other sites More sharing options...
staticwater Posted June 3, 2011 Report Share Posted June 3, 2011 $a = range(1,100); 1 Quote Link to comment Share on other sites More sharing options...
alexarpad2003 Posted June 3, 2011 Author Report Share Posted June 3, 2011 Merci mult ! Quote Link to comment Share on other sites More sharing options...
alexarpad2003 Posted June 3, 2011 Author Report Share Posted June 3, 2011 $a=range(1,100);$b=range(1,100);$c=array_combine($a, $;De asta aveam nevoie ! Quote Link to comment Share on other sites More sharing options...