General

Upgrading PHP7 to PHP8 issues:

$money=”100 dollars”;

$money=(int)$money;

In PHP7:
$money=100

In PHP8:

$money=0;
In PHP8 we should use $money=intval($money)