I have a body of text like so:
Lorem Ipsum %final_walk_through_date% is simply dummy text of the printing and typesetting industry. %buyer_full_name% Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum %buying_side_commission_percent%. %escrow_officer_first_name% and %ccrs_date%.
I want to use PHP to scan through this body of text and look for any variable that has this pattern %variable_name% and then add that value to an array.
In the end I would have an array that looks like so:
array[
'%final_walk_through_date%',
'%buyer_full_name%',
'%buying_side_commission_percent%',
'%escrow_officer_first_name%',
'%ccrs_date%'
]
How can this be accomplished?