I can't figure out what the PHP equivalent of the below Perl code would be:
my (%params) = $rp =~ m/(\w+)\s*=\s*['"]\s*(.*?)\s*['"]/g;
Can anyone help me out? Thanks!
Well, the simplest way is to just copy and paste it and hope for the best:
preg_match_all("/(\w+)\s*=\s*[\'\"]\s*(.*?)\s*[\'\"]/", $rp, $params);
Diego