Jump to content

Archived

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

Dooq

Change the stringe to Number ? [ how ]

Recommended Posts

Hi

How can i change a string to number ?

when i get the data using innerHTML method the data will be string,but i need to change the data type to do some Math work on it.

Regards

Share this post


Link to post
Share on other sites
php variables are 'loosely typed'. If you add zero to a string you get a number.

Share this post


Link to post
Share on other sites
Maybe i didn't get what he need.
we are in Javascript Help and he say [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]when i get the data using innerHTML[/quote] innerHTML toled me that he taking about JavaScript not php.

regards

Share this post


Link to post
Share on other sites

×

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.