In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Rick
Ridgeway) wrote:
> > > I grab this line and try to make it an array like this:
> > print "line: $thelinefromfile\n"; //Check the line
> > > $var1 = trim($thelinefromfile);
> > > $var2 = split(" ", $thelinefromfile);
> > > $count = cou
Sean Cazzell wrote:
> > I grab this line and try to make it an array like this:
> print "line: $thelinefromfile\n"; //Check the line
> > $var1 = trim($thelinefromfile);
> > $var2 = split(" ", $thelinefromfile);
> > $count = count($var2);
>
> Are you sure $thelinefromfile is actually being s
> I grab this line and try to make it an array like this:
print "line: $thelinefromfile\n"; //Check the line
> $var1 = trim($thelinefromfile);
> $var2 = split(" ", $thelinefromfile);
> $count = count($var2);
Are you sure $thelinefromfile is actually being set correctly?
Regards,
Sean
-
im trying to build an array from an entry in a file and im having some
trouble with it.
in a file i have a line similar to:
1234 hello 123456 12345678
I grab this line and try to make it an array like this:
$var1 = trim($thelinefromfile);
$var2 = split(" ", $thelinefromfile);
$count = count($var
4 matches
Mail list logo