Explode string to array in PHP (strings are similar to WP shortcodes)
I'm working on a type of page builder with Laravel and try to implement shortcodes WordPress style. I have HTML code as a string like this: $string = '<div class="temp"> [title type="text" tag="h2" value="This is my cool title" disabled some-attribute]…