H
H
hrvasiliy2014-09-24 09:17:02
PHP
hrvasiliy, 2014-09-24 09:17:02

How to convert a variable?

I explain, I'm trying to parse numbers, everything is parsed normally ... Only the data type of numbers is string ... And I need a float. For some reason the settype function doesn't work :( How do I convert a string to a number?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vdem, 2014-09-24
@hrvasiliy

$floatValue = (float) $strValue;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question