hEiti Posted April 6, 2011 Report Share Posted April 6, 2011 Atvainojos iespejams par mulkjigo jautajumu. Ka php iespejams uzstadit array izmeru un aizpildit to ar * katra lauka? Un talaka funkcija parrakstis sakot no pirma lauka, bet ja array izmers bus 10 un ieraksti tikai 8 tad gribu lai pedejie 2 lauki paliktos ka * Ceru kad izteicos pietiekoshi skaidri. Quote Link to comment Share on other sites More sharing options...
Rincewind Posted April 6, 2011 Report Share Posted April 6, 2011 $a = array_fill(0, 10, '*'); print_r($a); Quote Link to comment Share on other sites More sharing options...
Val Posted April 6, 2011 Report Share Posted April 6, 2011 Cerams, ka pirms topika veidošanas arī pameklēji kaut pusminūti... http://www.php.net/manual/en/function.array-fill.php 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.