I want to be able to add products with a price but also with just a text. So I build a check to see if the string is numeric. My problem is that I show the price like this:
if($product['xreference'] != ''){
$price = '€ '.strip_tags($product['xreference']);
}else{
$price = '';
}
So how can I check if $price
is numeric but exclude the euro sign in the check?