hi,
i got problem in covert the data to integer
example:
in my database is bv column is 2.0000

now i want it convert to 2

how to i do so? in php
thanks for advance

Use PHP's intval function:

echo intval(2.0000); // 2

You can also use the round() function if you want to round the number.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.