Examples of common search and sort algorithms written in PHP.