Welcome Guest, Not a member yet? Register   Sign In
Handy string functions
#7

[eluser]Shay Falador[/eluser]
You are right, it doesn't work as I taught it was, it keeps the first digits, until it sees an non-digit charter.

Code:
echo (int)'12test3';
Outputs 12.

Code:
echo (int)'test123';
Outputs 0.

My bad.


Messages In This Thread
Handy string functions - by El Forum - 01-18-2010, 03:57 PM
Handy string functions - by El Forum - 01-18-2010, 09:30 PM
Handy string functions - by El Forum - 01-19-2010, 03:53 AM
Handy string functions - by El Forum - 01-19-2010, 10:50 AM
Handy string functions - by El Forum - 01-19-2010, 12:41 PM
Handy string functions - by El Forum - 01-20-2010, 05:56 PM
Handy string functions - by El Forum - 01-20-2010, 11:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB