In my $_POST array, I have the following values:
[txtPe_20_Table1] => 2.3
[txtPa_12_Table1] => 0.00
[txtPa_25_Table1] => 0.00
[txtPa_35_Table1] => 0.00
[txtPa_50_Table1] => 0.00
[txtPa_100_Table1] => 0.00
[txtPa_200_Table1] => 0.00
[txtPr_12_Table1] => 0.00
Now, what I want to do is extract only the number values from the keys starting with 'txtPa_'.
What would be the best approach to do this? Should I use regex or just loop through the array searching for a substr beginning with 'txtPa_'?