<?php
$fthi = array("1", "2", "3", "4", "5", "6", "8", "15", "25", "40");
if (in_array("25", $fthi)) echo "25 está presente";
if (in_array("35", $fthi)) echo "35 está presente";

//https://pt.stackoverflow.com/q/100963/101