Похожие чаты

$A = '1+2'; (string) how to i get 3 (int) ?

2 ответов

6 просмотров

You can use eval

You can type cast the variable $integer = (int)$a; $float = (float)$a; Also check out the intval() and floatval() functions in the PHP docs.

Похожие вопросы

Карта сайта