Gulshan Posted July 27, 2021 Share Posted July 27, 2021 In PHP Version 8.0 shows error as : PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * string String is as under : $TAXVALUE= round($QNTY*($PRICE- ($PRICE*$DISC/100)),2); In previous versions of PHP it does not show any error. Please resolve the issue. Quote Link to comment https://forums.phpfreaks.com/topic/313444-in-php-version-80-shows-error-as-php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-string/ Share on other sites More sharing options...
requinix Posted July 27, 2021 Share Posted July 27, 2021 At least one of those variables is a string containing an invalid number. Find it, figure out why it isn't the number you think it is, and fix it. Quote Link to comment https://forums.phpfreaks.com/topic/313444-in-php-version-80-shows-error-as-php-fatal-error-uncaught-typeerror-unsupported-operand-types-string-string/#findComment-1588646 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.