Php Get Url Path Javascript Array Find Item With Barcode