e() - HTML Escape
Input: <script>alert("XSS")</script>
Output: <script>alert("XSS")</script>
Escapes unsafe characters to prevent XSS.
url() - URL Generation
url('/request'): http://php.homelab.sacha.house/request
url('/api/users'): http://php.homelab.sacha.house/api/users
date() - Date Formatting
Timestamp: 1772679154
Default: 2026-03-05 02:52:34
Custom (Y-m-d): 2026-03-05
String: 2024-01-15 14:30:00
Formatted: January 15, 2024
truncate() - String Truncation
Original: This is a very long text that needs to be truncated to demonstrate the truncate helper function.
30 chars: This is a very long text that ...
50 chars: This is a very long text that needs to be truncate...