- with two var php code example Example: How do i multiple variables in php $totalvariablename = $variablename * $othervariablename + ($othervariablename * 2);