read file
how do you read from a secondary file?
|
Re: read file
How do you mean?
As in read two files at once? Or just read from a file? If you mean how to read in general: PHP Code:
First, the loop itself: The code in {} after the while () will be executed again and again until the expression after while ( in () ) is no longer true. And secondly the condition: ( line = x ) has the value of x, and sets line to x. e.g. PHP Code:
(without the extra pair of parentheses, you would get a "possibly unintended assignment" warning. PHP Code:
|
Re: read file
You should understand a while loop because most reading techniques use a while loop until the end of the file (eof) has been met
|
| All times are GMT -4. The time now is 16:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.