$file_url = 'https://raw.githubusercontent.com/unitedstates/congress-legislators/master/committee-membership-current.yaml'; // get raw file contents $raw_data = file_get_contents($file_url); // arrays for each record $id = $id_fields = $name = $name_fields = array(); // get record chunks preg_match_all('/(.*?)\n[A-Z0-9]/sm', $raw_data, $record_chunks); var_dump($record_chunks);
array (size=2) 0 => array (size=212) 0 => string 'HLIG: - name: Devin Nunes party: majority ....... - name: Jeff Miller party: majority ....... - name: K. Michael Conaway party: majority ....... 1 => string 'LIG01: - name: Frank A. LoBiondo party: majority ...... - name: K. Michael Conaway party: majority .......... 2 => string 'LIG02: - name: Lynn A. Westmoreland party: majority .... 3 => string 'LIG03: - name: Thomas J. Rooney party: majority .......
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.