<?php $str = '$str1var ="str1"; $str2var = "str2"'; $pattern = '/$(.*?)=/s'; preg_match_all($pattern, $str, $output_array); var_dump($output_array);
You have javascript disabled. You will not be able to edit any code.