note 38113 added to faq.build
| From: | asiaczek22 at op dot pl | Date: | Mon, 08 Dec 2003 22:44:09 +0000 |
| Subject: | note 38113 added to faq.build | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61663@lists.php.net to get a copy of this message | ||
I've got a big problem with for()
example:
(...)
for($m=0; $m<=$total; $m++){...........}
(...)
is it possible to denny "$m++" ?
why am I askin for..
inside {...........} i've got another for( ) "control structure" with random function
and I need to random for example 10 times for 5 numbers from file.txt and write each of them to
another file ( 1st 5 numbers --> file1.txt, another 5 numbers --> file2.txt but without
rewriting previous numbers from 1rst random ... and so on)
for example
1rst random: 134 , 2 , 56 , 34 , 655 --> create and write to file1.txt
2nd random: 324 , 234, 1, 43, 98 ---> create file and write to file2.txt
3rd.......
PROBLEM :
1rst file (file1.txt) is correct
2nd file (file2.txt) include 1st file + new random from "2nd random" .. but here must be
content from new 2nd random ONLY
3rd = 1 + 2 + new 3, but must be only "new 3rd random numbers"
I NEED YOUR HELP ;(
greetings
----
Manual Page -- http://www.php.net/manual/en/faq.build.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38113
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38113&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38113&report=yes
Search -- http://master.php.net/manage/user-notes.php