Im really lost at the moment what I need to do its open a file find !@#function#@! and run a php function in its place.
I’ve been using file_get_contents() to open the file and I have to go through at replace certain things. there is simple things like text I can go through and replace with just a simple str_replace(). what I need to do is run a function and let it out etc etc in place of !@#function#@! in the file string.
I hope this makes some sense Im struggling to explain it myself.
I guess what you need is preg_replace_callback