I’m making several webpage which uses a single function in php a lot. I’m wondering how I can put this function in an external file and use it (I tried include, but it seems like it doesn’t work that way), like putting all javascript in one file and put it in the header. Thanks
Share
For PHP code:
For JS code:
These work if you have the paths set correctly.