I have an IF statement that looks like this:
if ($customer_po_line[$i] == "00001"){
$order_no = "1";
}
if ($customer_po_line[$i] == "00002"){
$order_no = "2";
}
if ($customer_po_line[$i] == "00003"){
$order_no = "3";
}
if ($customer_po_line[$i] == "00004"){
$order_no = "4";
}
Any way to shorten this to accomadate values up to 3000? Or am I going to have to hard code every line until I get to 3000?