In Visual Basic there is a function called left.
usage: left(string, len)
It allows you to get the first 'len' characters of 'string'.

Is there a similar function in PHP?

I have a value:
That I just want to crop to "3.40"
If I pass "3.405" to MySQL it adds it like this: "3.41"


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to