I am taking this from VB, but what are int and val in PHP?
$i = Int(Val(substr( $code, 3, 3)) / 100) * 100;
In case you dont know VB
Int - truncates the numner (i looked for trunc already)
Val - string to number
Sonnich
PS: jep I have realised I can to the thing above simpler.
$i = Int(Val(substr( $code, 3, 3)) / 100) * 100;
In case you dont know VB
Int - truncates the numner (i looked for trunc already)
Val - string to number
Sonnich
PS: jep I have realised I can to the thing above simpler.
Comment