Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Posts
    157

    Unanswered: interpreting string variable as integer / decimal

    ei guys,

    is there a way to do this, i've had to store numerical values as string ( please don't ask why ) ... would it be possible to process them as numerical values at some point ?
    Only quitters quit!

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    as ever the manual (www.php.net) is your friend
    have a look at intval & floatval

  3. #3
    Join Date
    Apr 2006
    Posts
    157
    wow, thanks, somehow i was able to use the string result from a mysql query and use it as integer...

    i'm running 120 mph, doing a project while weaving through the language at the same time...

    but many thanks.
    Only quitters quit!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •