public static function shortCodeInit($options)
    {
        preg_match_all('/[a-zA-Z0-9]+="[^"]+"|\S+/', $options, $matches);

        $res = array();
        foreach ($matches[0] as $match) {
            $pos = strpos($match, '=');
            if ($pos === false) {
                $res[$match] = true;
            } else {
                $key = substr($match, 0, $pos);
                $val = trim(substr($match, $pos+1), '"');
                $res[$key] = $val;
            }
        }

        return $res;
    }
public static function shortCodeInit($options)
    {
        preg_match_all('/[a-zA-Z0-9]+="[^"]+"|\S+/', $options, $matches);

        $res = array();
        foreach ($matches[0] as $match) {
            $pos = strpos($match, '=');
            if ($pos === false) {
                $res[$match] = true;
            } else {
                $key = substr($match, 0, $pos);
                $val = trim(substr($match, $pos+1), '"');
                $res[$key] = $val;
            }
        }

        return $res;
    }
public static function shortCodeInit ( $ options ) { preg_match_all ( '/[a-zA-Z0-9]+="[^"]+"|\S+/' , $ options , $ matches ) ; $ res = array ( ) ; foreach ( $ matches [ 0 ] as $ match ) { $ pos = strpos ( $ match , '=' ) ; if ( $ pos === false ) { $ res [ $ match ] = true ; } else { $ key = substr ( $ match , 0 , $ pos ) ; $ val = trim ( substr ( $ match , $ pos + 1 ) , '"' ) ; $ res [ $ key ] = $ val ; } } return $ res ; }
Init shortcode handling by preparing the option list to an array,
for those using arguments.

@param string $options for the shortcode.

@return array with all the options.
Init shortcode handling by preparing the option list to an array for those using arguments .