Hello, I was wondering if anyone can tell me of any php functions to convert a string into a number. I looked around the php manual but there doesn't seem to be anything like that.
The reason I ask is I have some pages with a string as a variable in the URL:
www.mysite.com/index.php?var=string123
www.mysite.com/index.php?var=2string4
I want to implement the Google Friend Connect Review/Rate gadgets in the page. Since Google Friend connect gadgets need to have a unique ID in order to be used just within the scope of that one page, i wanted to grab the value of $_GET['var'] and convert that into a decimal number.
I tried a function than converts ascii to binary but the Google Friend Connect ID number seems to have to be a decimal number.
Any suggestions?
Thanks