Jump to content

Erazer

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Erazer's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi AndyB that works great so thanks for the help. I had a feeling it needed some string manipulation and break down but since i've just started learning your sloppy code is an eye opener  ;) thanks again
  2. Hi Jeremysr thanks for the quick reply, I've tried the floatval() before but it doesnt seem to work if there is a operand in the string so $string = "45.9"; $float_string = floatval($string); echo ($float_string); // Will echo 45.9 but $string = "45.9+10"; $float_string = floatval($string); echo ($float_string); // Will also echo 45.9 and not 55.9 so i'm looking for something that will do the math in the string and out the result thanks
  3. Hi I'm using the EXIF functions to read camera setting of my photos. In some cases it returns the value as a string e.g 2.8 is returned as "28/10". Is there a function to convert the string into a numeric value? sorry if this seems newbie question thanks
×
×
  • Create New...

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.