title: Get content in parentheses following right after string using regex in php
body: <p>I have a php file as a string, I am looking for places where certain functions are called and I want to extract the passed arguments to the function.</p>
  
  <p>I need to match the following cases:
  some_function_name("abc123", ['key' => 'value'])
  some_function_name("abc123", array("key" => 'value'))</p>
  
  <p>So far I have this, but it breaks as soon as I have any nesting conditions:</p>
  
  <pre><code>(function_name)\(([^()]+)\)
  </code></pre>