$v;
                  
                  
                  ?>
                  
                  
                  
                  
                  
                  this will echo 2.5000
                  
                  
                  how can i echo 2.5?
                  
                  
                  so that all the value-less zero's gets out!
                  
                  
                
How are you using a PHP function without knowing what the arguments are?
$v = (float) '1.2300'; echo $v
roun($v,1);
Обсуждают сегодня