Bin will be removed on June 1, 2014 in favor of http://gist.github.com. Please save all your pastes before then. So long, and thanks for all the fish!×

locale typecasting

View Paste
  1. echo "<pre>";
  2. $pi = 3.141593;
  3. echo (float)(string)$pi ."\n";
  4. var_dump(setlocale(LC_NUMERIC, 'p...
locale vs. type casting