convert decimal to int php code example Example: convert to int php $myintvariable = intval($myvariable);