if$price1 i want if price1 is number
You can use the is_numeric() function to check if $price1 is a number. If it is, you can perform the desired action. Here's an example:
if (is_numeric($price1)) {
// Code to execute if $price1 is a number
} else {
// Code to execute if $price1 is not a number
}
Replace the comment placeholder with your actual code.
原文地址: http://www.cveoy.top/t/topic/iyUp 著作权归作者所有。请勿转载和采集!