PHP <-> JavaScript communication: Am I stuck with ASCII?

Posted by Goro on Stack Overflow See other posts from Stack Overflow or by Goro
Published on 2010-04-22T22:22:16Z Indexed on 2010/04/22 22:23 UTC
Read the original article Hit count: 186

Filed under:
|
|

Hello,

I am passing a lot of data between PHP and JavaScript. I am using JSON and json_encode in php, but the problem here is that I am passing a lot of numbers stored as strings - for example, numbers like 1.2345.

Is there a way to pass the data directly as numbers (floats, integers) and not have to convert it to ASCII and then back?

Thanks,

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about php