Jump to content

force string on php soap


dingus

Recommended Posts

Read this please..

 

Dont think there a way to force a string to a type not sure theo...

 

<?php

//gettype will tell you the type the string is intriger so on.

//example

$name="redarrow";

echo " ."gettype($name)." ";

// there also the is_string() and is_int()

?>

 

i have no code to show as i don't know how to do it , basically I'm calling information from a soap server how ever the server is returning a unique identifier that is between 12 and 18 decimal digits in length my problem is simple for the longer ones php is making them a float and rounding to something along the lines of 4.356E13 etc now because i need to use this as a unique identifier latter on this wont do how can i tell the soap client it is meant to be a string?

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.