I was wondering how can I create preg_match
for catching:
id=4
4
being any number and how can I search for the above example in a string?
If this is could be correct /^id=[0-9]/
, the reason why I'm asking is because I'm not really good with preg_match
.