# Util

$this->util->method()

# Introduction

Light-PHP comes with a helper class which includes useful methods out of the box, here are its functions:

# arraySortByColumn

Sort a array by one of it's column

# convert

Converts memmory into a human readable format

# isAjaxRequest

Check if it's an ajax request

# ipAddress

Gets the current ip address

# escape

Escapes quotes and special characters

# sanitizeText

Deletes specials chars

# generateSimpleToken

Generates simple token

# checkPostCSRFToken

Check if the CSRF token it's in the post request

Util code (opens new window)