Welcome Guest, Not a member yet? Register   Sign In
how to use model?
#9

[eluser]xwero[/eluser]
php functions are limited to one output but it can be an array or an object. In a class you can use class variables to assign values to.

But you should work with arrays in your for loop too. The code as it is will overwrite each file with the next file content until the files end.
Code:
$kefiles = array();
$qcfiles = array();
$qccount = array();
for($x = 0; $x <= $qclist; $x++)
            {
                $kename = ($kebase . $dir . $ke[$x]);
                $qcname = ($qcbase . $dir . $qc[$x]);
                $file1 = file($kename);
                $file2 = file($qcname);
                $qccount[] = count($file2);
                $kefiles[] = $file1;
                $qcfiles[] = $file2;
            }
return array($keyfiles,$qcfiles,$qccount);


Messages In This Thread
how to use model? - by El Forum - 10-12-2008, 09:14 PM
how to use model? - by El Forum - 10-12-2008, 10:41 PM
how to use model? - by El Forum - 10-12-2008, 10:55 PM
how to use model? - by El Forum - 10-12-2008, 11:42 PM
how to use model? - by El Forum - 10-12-2008, 11:54 PM
how to use model? - by El Forum - 10-13-2008, 12:06 AM
how to use model? - by El Forum - 10-13-2008, 12:51 AM
how to use model? - by El Forum - 10-13-2008, 01:05 AM
how to use model? - by El Forum - 10-13-2008, 01:20 AM
how to use model? - by El Forum - 10-13-2008, 01:28 AM
how to use model? - by El Forum - 10-13-2008, 02:10 AM
how to use model? - by El Forum - 10-13-2008, 02:43 AM
how to use model? - by El Forum - 10-13-2008, 02:53 AM
how to use model? - by El Forum - 10-13-2008, 02:59 AM
how to use model? - by El Forum - 10-13-2008, 03:04 AM
how to use model? - by El Forum - 10-13-2008, 03:08 AM
how to use model? - by El Forum - 10-13-2008, 03:17 AM
how to use model? - by El Forum - 10-13-2008, 03:34 AM
how to use model? - by El Forum - 10-13-2008, 03:43 AM
how to use model? - by El Forum - 10-13-2008, 03:49 AM
how to use model? - by El Forum - 10-13-2008, 03:54 AM
how to use model? - by El Forum - 10-13-2008, 03:55 AM
how to use model? - by El Forum - 10-13-2008, 03:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB