using PHP, How can i remove the rest of character if sting_Len
is greater than 6 for example i have 600275L
and i want to end up like 600275
but only if greater than 6 digit.
i used the following code to to extract value starts with 600
, i want update it to work for the above condition, Thank you
if((substr($key, 0, 3) == "600") && ($row['ItemClass']==3))
{
$assy = $key;
$rout = "Assy";
}