Using if statement in PHP -


i have values like:

0.0016662256300037 0.0039870529599284 621.26166045405 -5.99733512656 -223.045 

i don't show if value 0 or equal zero. mean don't want show these 2 values 0.0016662256300037 , 0.0039870529599284 using:

if($pay_balance != '0' ){     echo $pay_balance; } 

based on @undone comment

if(intval($pay_balance) !=0){    echo $pay_balance; } 

intval()


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -