how to use in custom single.php template using php?

in custom single.php template using php?