delucaspinto

[PHP] CONVERT STR TO FLOAT

Nov 6th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.10 KB | None | 0 0
  1. $valor_float = str_replace(',', '.', str_replace('.','', str_replace('R$ ','', Input::get('valor'))));
Advertisement
Add Comment
Please, Sign In to add comment