# formidable/2.05.09/classes/helpers/FrmShortcodeHelper.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version 2.05.09. 29 lines.

- Page: https://pluginprobe.com/plugins/formidable/2.05.09/code/classes/helpers/FrmShortcodeHelper.php
- Raw: https://pluginprobe.com/plugins/formidable/2.05.09/raw/classes/helpers/FrmShortcodeHelper.php
- Modified: 2018-01-03T22:31:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/2.05.09/code/classes/helpers/FrmShortcodeHelper.php#L10-L20`.

```php
<?php
/**
 * @since 2.02.12
 */

class FrmShortcodeHelper {

	/**
	 * Get the shortcode attributes in key/value pairs from a string
	 *
	 * @since 2.02.12
	 * @param string $text
	 *
	 * @return array
	 */
	public static function get_shortcode_attribute_array( $text ) {
		$atts = array();
		if ( $text !== '' ) {
			$atts = shortcode_parse_atts( $text );
		}

		if ( ! is_array( $atts ) ) {
			$atts = array();
		}

		return $atts;
	}
}

```
