How to get specific string/value from an array? php [closed]

Use below code to get the ‘pdff’ value:

$url_components = parse_url($ark[0]); 

// Use parse_str() function to parse the 
// string passed via URL 
parse_str($url_components['query'], $params); 
      
// Display result 
echo $params['pdff'];

tech