Retrieve a repeating person's name in array of string - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Monday, February 14, 2022

Retrieve a repeating person's name in array of string

Everyone! I'm currently working on the project where I should merge some pdf files into one using Laravel. I receive response from Airtable response. The main thing is that after merging pdf files I'm gonna set a name of merged pdf file. For example, I have to merge these files:

0:"D:\Developments\AirtablePDFCombiner\airtable-pdf-combiner\storage\app/pdf_files\SalvageQuoteSummaryreportChristenPretrick.pdf"
1:"D:\Developments\AirtablePDFCombiner\airtable-pdf-combiner\storage\app/pdf_files\SummaryReportChristenPretrick.pdf"
2:"D:\Developments\AirtablePDFCombiner\airtable-pdf-combiner\storage\app/pdf_files\EstimateChristenPretrick.pdf"
3:"D:\Developments\AirtablePDFCombiner\airtable-pdf-combiner\storage\app/pdf_files\PhotoSheetChristenPretrick.pdf"
4:"D:\Developments\AirtablePDFCombiner\airtable-pdf-combiner\storage\app/pdf_files\Comp26700.00.pdf"
5:"D:\Developments\AirtablePDFCombiner\airtable-pdf-combiner\storage\app/pdf_files\Comp26888.00.pdf"
6:"D:\Developments\AirtablePDFCombiner\airtable-pdf-combiner\storage\app/pdf_files\Comp27991.00.pdf"
7:"D:\Developments\AirtablePDFCombiner\airtable-pdf-combiner\storage\app/pdf_files\NADA.pdf"

As you see, in first three files there is a name of person: "ChristenPretrick", which should be a name of the merged pdf file.

But how to get only this name in this array using the Laravel Controller. Please leave me feedback, will be extremely appreciated to your answer. Best Regards.



source https://stackoverflow.com/questions/71103431/retrieve-a-repeating-persons-name-in-array-of-string

No comments:

Post a Comment