luckian121 Posted May 4, 2010 Report Share Posted May 4, 2010 (edited) Salut am si eu o mica problema orice am incercat numi iese in loc sami iasa Dempsey de ex imi da $nn11 aveti vreo idee de ce? <?php$nn11 = "Dempsey";$nn12 = "Vargas";$nn13 = "Kelley";$nn14 = "Stroming";$nn15 = "Johnson";$nn16 = "Connell";$nn17 = "Newlander";//am mai taiat din cod $nn146 = "Walter";$xx = rand(110, 146);$xxx = rand(10, 46);$n4 = '$nn'.$xx;$n3 = '$nn'.$xxx;echo $n3;?>Sper ca am postat unde trebui.. Edited May 4, 2010 by luckian121 Quote Link to comment Share on other sites More sharing options...
luckian121 Posted May 4, 2010 Author Report Share Posted May 4, 2010 Scz am rezolvat <?php$input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank");$rand_keys = array_rand($input, 2);echo $input[$rand_keys[0]] . "\n";echo $input[$rand_keys[1]] . "\n";?> Quote Link to comment Share on other sites More sharing options...