单项选择题

$str=”123a45b”;$num=(int)$str;变量$num中的值是多少?()

A.0
B.123
C.12345
D.45