Related resources for reverse function in PHP