In PHP, how would one search search for a double bracketed keyword (ie. [[keyword]]) and replace it with an php include when found?
My intention is a back-end user will have an basic editor in a textarea in which they can call upon php includes I have predefined via the double bracketed tag that will render a specific include upon output to the public facing side of the app..
preg_matchis one method, here’s how it might work: