Skip to content

Tag: php

Moodle email templates

I am working on a Learning Management System build upon Moodle. I want to add an email header and footer for each email. I did some change in Moodle for adding an image in ./lib/moodlelib.php as follows: but I want the header and footer as fixed templates. Please help me. Answer You could create a message hea…

replace all keys in php array

This is my array: how can I replace all the “e” letters with “!” in the key name and keep the values so that I will get something like that I found this but because I don’t have the same name for all keys I can’t use It Answer I hope your array looks like this:- If yes then…

Ignoring characters in field string in MySQL

I’m pulling a list of names from a database; SELECT * FROM people ORDER BY name ASC However, some of the names are like [Mod]John, and these are all at the end of the list instead of in alphabetical …