Ask a Question related to PHP Development, Design and Development.
-
Jeremy Watts #1
'read data'
does php have the equivalent of a 'read... data' type statement? So,
read $a
..
..
..
data 5, 6, 7, -1
would assign to $a the value '5' and then carry out instructions that lie
between the 'read' and 'data' statements, before reading the next piece of
data, that being '6'.
I know the BASIC language has this sort of thing, but cant seem to find the
equivalent for PHP..
thanks
Jeremy Watts Guest
-
no more data to read
We finally discovered why we were intermittently receiving a "No more data available to read" error. 1) Some of our datasources were setup with... -
CF7 - no more data available to read
I'm having problems getting a datasource to verify in CF 7.0.1 through the adminintrator. We have installed the lastest drivers and updates. I... -
best (fastest) way to read data
I have to read several Mb of data out of a database. There are several ways to do this, but with is the fastest? 1. To load a XML file from the... -
No more data available to read
Error Executing Database Query. No more data available to read. We get the above error "randomly" -- I cannot replicate, but it occurs often... -
How to write and read data to and from .flv
Can anyone explain the concept of how to write and read data (plain text messages, or entire objects) from and to a .flv file? The application... -
Virgil Green #2
Re: 'read data'
"Jeremy Watts" <jwatts1970@hotmail.com> wrote in message
news:sYn%c.458$J07.356@newsfe5-gui.ntli.net...the> does php have the equivalent of a 'read... data' type statement? So,
>
> read $a
> .
> .
> .
> data 5, 6, 7, -1
>
> would assign to $a the value '5' and then carry out instructions that lie
> between the 'read' and 'data' statements, before reading the next piece of
> data, that being '6'.
>
> I know the BASIC language has this sort of thing, but cant seem to findYou'd stick the data in an array and then loop through the array.> equivalent for PHP..
> thanks
Funny story. When I was working as the lab monitor at school, we had one
student (halfway through her first BASIC course) who asked me "Why do we
need files if we have the DATA statement for storing our data?"
- Virgil
Virgil Green Guest
-
Alvaro G Vicario #3
Re: 'read data'
*** Jeremy Watts wrote/escribió (Tue, 07 Sep 2004 19:27:20 GMT):
Sorry, I don't know anything about Basic. You want to loop though an array> read $a
> data 5, 6, 7, -1
>
> would assign to $a the value '5' and then carry out instructions that lie
> between the 'read' and 'data' statements, before reading the next piece of
> data, that being '6'.
>
> I know the BASIC language has this sort of thing, but cant seem to find the
> equivalent for PHP..
of numbers, don't you? It'd be something like this:
$data=array(5, 6, 7, -1);
foreach($data as $i){
// Here you do whatever you need with $i
}
--
-- Álvaro G. Vicario - Burgos, Spain
-- Thank you for not e-mailing me your questions
--
Alvaro G Vicario Guest



Reply With Quote

