In SQL there is the LIKE
parameter that you can put in to have a wild card for values such as: LIKE %value%
. How would I be able to do that with, say, a PHP if statement?
$value = "value-";
$post = $_POST['retrievedVal'];
if($value.% == $post)
{
echo "true";
}