I have a sql query like below:
select * from tbl_test where id=:id and name=:name
now I want to extract all variables from above string. for this reason I want to use preg_match()
function in php. but I don't know how to write that regular experssion.
can anybody help me to solve this problem?