M
M
Messi2017-09-29 10:41:57
MySQL
Messi, 2017-09-29 10:41:57

How to get int on Select?

When I do Select COUNT(id) From table. When working in php, the record with count is returned in string format. Tell me, please, how to get in int?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Beloborodov, 2017-09-29
@FitTech

$var = 'Select COUNT(id) From table'; // типа выбрали
$var = intval($var); // (int)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question