Problems with a long integer
Posted: Thu Feb 24, 2011 9:29 am
I have a WSDL that it returns this field:
<xsd:element maxOccurs="1" minOccurs="1" name="CO-RFR-AVE-ICD-TDE" nillable="false" type="xsd:long"/>
The field content returned is 20110094012838001.
I made an echo and the result was 2.01100940128E+16.
How can i display the field content correctly?
I´ve tried
<xsd:element maxOccurs="1" minOccurs="1" name="CO-RFR-AVE-ICD-TDE" nillable="false" type="xsd:long"/>
The field content returned is 20110094012838001.
I made an echo and the result was 2.01100940128E+16.
How can i display the field content correctly?
I´ve tried
Code: Select all
(string)$field
settype($field,'string')
$string_field='-'.$field