php - A non well formed numeric value encountered while using fmod -


i new in php using fomd function.

if ($time_long > 8){         $z=8;         $q= fmod($time_long,$z);         $x2=$q; 

i getting modulus fine notice saying non formed numeric value encountered suggerstion

in code every thing looks perfect. problem $time_long variable. passing string value if function.

read fmod() function well.

so check that, use

print_r($time_long); die(); 

this print content of variable.

so come

$time_long = 15//integer value  if ($time_long > 8){     $z=8;     $q= fmod($time_long,$z);     $x2=$q; 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -