original_string: protected function getFooterScriptsFrag($html)
      {
          if (!($html = (string) $html)) {
              return []; // Nothing to do.
          }
          if (preg_match('/(?P<all>(?P<open_tag>\<\!\-\-\s*footer[\s_\-]+scripts\s*\-\-\>)(?P<contents>.*?)(?P<closing_tag>(?P=open_tag)))/uis', $html, $head_frag)) {
              return $this->removeNumericKeysDeep($head_frag);
          }
          return [];
      }
code: protected function getFooterScriptsFrag($html)
      {
          if (!($html = (string) $html)) {
              return []; // Nothing to do.
          }
          if (preg_match('/(?P<all>(?P<open_tag>\<\!\-\-\s*footer[\s_\-]+scripts\s*\-\-\>)(?P<contents>.*?)(?P<closing_tag>(?P=open_tag)))/uis', $html, $head_frag)) {
              return $this->removeNumericKeysDeep($head_frag);
          }
          return [];
      }
code_tokens: protected function getFooterScriptsFrag ( $ html ) { if ( ! ( $ html = ( string ) $ html ) ) { return [ ] ; // Nothing to do. } if ( preg_match ( '/(?P<all>(?P<open_tag>\<\!\-\-\s*footer[\s_\-]+scripts\s*\-\-\>)(?P<contents>.*?)(?P<closing_tag>(?P=open_tag)))/uis' , $ html , $ head_frag ) ) { return $ this -> removeNumericKeysDeep ( $ head_frag ) ; } return [ ] ; }
docstring: Build a footer scripts fragment from HTML source code.
  
  @since 140417 Initial release.
  
  @param string $html Raw HTML code.
  
  @return array A footer scripts fragment (if possible); else an empty array.
docstring_tokens: Build a footer scripts fragment from HTML source code .