Khor Shuqi

Some Simple PHP Functions that I Find Useful

I’ll keep this list updated. stop() We use this function to gracefully stop the program in place of exit. We used to close all DB connections within this function, but it’s seemed no longer required to close manually, so sometimes we just do some data logging here. is_num() and is_id() It’s funny that in PHP, most…

Read more