<?php
// combination of is_int and type coercion
// FALSE: 0, '0', null, ' 234.6', 234.6
// TRUE: 34185, ' 34185', '234', 2345
$mediaID = 34185;
if( is_int( $mediaID + 0) && ( $mediaID + 0 ) > 0 ){
echo 'isint'.$mediaID;
}else{
echo 'isNOTValidIDint';
}
?>