note 38113 rejected from faq.build by betz

From: Date: Mon, 08 Dec 2003 23:06:40 +0000
Subject: note 38113 rejected from faq.build by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-61664@lists.php.net to get a copy of this message
Note Submitter: asiaczek22@op.pl ---- 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

« previous php.notes (#61664) next »