Moderators note: Please place new text below original text. 

Wade Smart escreveu:
>
> 02052008 1840 GMT-6
>
> A piece of hardware puts out a formatted report daily that I need to
> extract the data from. There are 13 columns of information. The data in
> the columns are from 1 to 5 possibly 6 places with no 0's as place 
> holders.
>
> What I need to do is remove all the spaces except 1 between all the
> columns.
>
> I thought about doing something like:
>
> do{ $pos_start = $pos_start + 1; }
> while ( !chr(32);
>
> But that doesnt work.
>
> Would someone give me a suggestion.
>
> Wade
>
>  
--------------------------

Try using explode() function :

$aData = explode(chr(32),$initial_data);
$final_data = $aData[n]+chr(32)+$aData[n+1]

n = position of your data
n+1 = position + 1

;)

Tomás

Reply via email to