Jump to content

Reg: Type casting


jana

Recommended Posts

i will explain my prob detailed. a string is fetched from the table from the database. the string will look like as follows.

IN:- 9:01AM <BR> IN:- 9:10AM <BR> OUT:9:45PM <BR> IN:-10:02 AM Like this and so on.........

i want the string splited and stored into two arrays as In[] and Out[];

every In's with the time should be stored in array variable In[] and Out's in Out[].

and my db is  mssql server 2000

i am fetching the row into a row variable as $row=msssql_fetch_row($result);

and the lenghty detailed field is $row[8];

$temp=$row[8];
$temp=explode('<BR>' $temp);

and thus $temp is an array having all in's and out's accordingly. and from here my trouble starts.

i don't know how to split in's and out's seperately.

can anybody help me.

Link to comment
https://forums.phpfreaks.com/topic/28883-reg-type-casting/#findComment-132738
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.