teimur8
4/18/2018 - 5:44 AM

helpers

-- compare date
endTime > CURRENT_TIMESTAMP()

-- between
date_sub(CURRENT_TIMESTAMP(), interval 3 day)
<?php

// add date
// +1 day = adds 1 day
// +1 hour = adds 1 hour
// +10 minutes = adds 10 minutes
// +10 seconds = adds 10 seconds
date('Y-m-d H:i:s', strtotime("+ $hours hour"))



// vardump length
ini_set('xdebug.var_display_max_depth', 5);
ini_set('xdebug.var_display_max_children', 256);
ini_set('xdebug.var_display_max_data', 1024);