3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $your_variable = '[section title="This is the title"]'; $your_variable = str_replace('type="full" type="wrapper"]','type="full"]',preg_replace ( '/\[section([^\]]+)(?!type)\]/i' , '[section$1 type="wrapper"]' , $your_variable )); echo "First try: ".$your_variable."\n";
Output for 4.3.0 - 7.2.0
First try: [section title="This is the title" type="wrapper"]