Twango Posted March 26, 2011 Share Posted March 26, 2011 Hi, I'm retrieving data from a MySQL databaseI want to add a value inputted from a text box, then add them together and save that.I know how to retrieve and save. My problem is converting to an integer... I know how to do this in VB.net (CInt) now, how would I do this in PHP?As a last resort, would somthing like eregi_replace("1",1,string) work? Link to comment Share on other sites More sharing options...
thescientist Posted March 26, 2011 Share Posted March 26, 2011 http://php.net/manual/en/function.intval.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.