Need help with PHP code

I use a PHP code block that successfully displays and links to all the PDFs stored in a folder… I want to have the PDFs display in a new window when clicked on.

Here is a part of the code where I think the “target” should be inserted:

print("

<a href="…/docs/bulletins/current/$dirArray_ch[$index]">$dirArray_ch[$index]");
print("\n");

Can anyone tell me where I can insert the target="_blank" code to make this work?
(I can supply the entire code block if necessary.)

this link opens in a new window

<a href='http://www.law.cornell.edu/supct/html/91-339.ZPC.html' target="_blank" rel="noopener">Justice Rehnquist</a>

but i think you could put it just ahead of the href and it would still work, i would also throw in the noopener attribute as well.