|
Posted by Erwin Moller on 11/13/64 11:20
Erwin Moller wrote:
> Richard Follet wrote:
>
>> Hi,
>>
>> I must read an HTML-free web page. The only documentation I have is this
>> :
>> :
>>
>> temp: This request will return an HTML-free web page, consisting of a
>> simple ASCII string of pipe-delimited data. The data will be in the
>> format of :
>>
>> "PROBE1_NAME|TEMP|PROBE2_NAME|TEMP…"
>>
>> How can I do ?
>>
>> Thanks
>
> Hi,
>
> What is it you want to do with that data?
> Do you want it displayed on a HTML-containing webpage?
>
> if so: use explode
> http://nl2.php.net/manual/en/function.explode.php
>
> eg:
>
> mysterystring = "PROBE1_NAME|TEMP|PROBE2_NAME|TEMP…";
> $parts =
Sorry, my KNode decided to post without my permission. :-(
This is what I wanted to write:
$mysterystring = "PROBE1_NAME|TEMP|PROBE2_NAME|TEMP…";
$parts = explode("|" , $mysterystring);
Now parts[0] is PROBE1_NAME
parts[1] is TEMP
parts[2] is PROBE2_NAME
etc.
Good luck.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|