[php-src] Issue #7895: Uncaught TypeError: Unsupported operand types: string * string in
| From: | tolgahanacar | Date: | Thu, 06 Jan 2022 12:36:35 +0000 |
| Subject: | [php-src] Issue #7895: Uncaught TypeError: Unsupported operand types: string * string in | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238802@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7895
Comment Author: tolgahanacar
I tried this as a solution.
$value = intval($_POST['value']); // var_dump: int
$usd = intval($currency['USD']['sale']); // var_dump: int
echo $value * $usd; // output 0