i was thinking about connecting a usb barcode device to my computer ..... i was trying to understand it in terms of arrays .... %%%%%%%%%%%% [][][][][][][][][][][][][] i dont know which part of the computer program takes this device .... %%%%%%%% [][][][][][][] from their i was thinking about getting it to my php script ... %%%%%% [][][][][] shouldnt php be able to connect to one of those ?
Not sure what you're trying to accomplish, but PHP is only part of the solution. For processing the information you present (be it to a form, or a stand-alone app or similar), PHP can be used. But for getting the data from the barcode scanner to somewhere where it can be processed, I'd recommend looking into simple HTML-forms, maybe with a bit of javascript attached. For instance, a barcode scanner can normally be substituted or added to normal keyboard input - hence you can add the information from the barcode scanner to any form input-element, for instance a text-type input, or a textarea. Adding javascript, you can split up the input (depending on which values you're adding with the scanner), and position this in separate input fields, for instance. You can also add an automatic addition of more fields when you add something etc. But all this will require HTML and javascript.
Funny that we have two threads with the same question. You'd benefit from reading https://forums.digitalpoint.com/threads/php-barcode-scanner-automatically-log-times.2681390/ and thinking about what you are trying to achieve. Your first post lacked clarity.