PHP Salt


A little dash of PHP... my collection of php functions



Main Menu

Home

Get PHP Salt


The Functions

file
  psFileCache()
  psCacheRead()
  psCacheWrite()
  psDirList()
  psFile_gc()
  psJsonRead()
  psJsonWrite()
  psFile_kv()
  psFile_kvl()
  psFileKeyVal()
  psFileKeyValL()
  psFileLines()
  psFileList()
  psSerialRead()
  psSerialWrite()
  psTaggedFile()

graph
  psGraphLineMulti()
  psGraphLine()
  psGraphLineDelta()

html
  psStrHiLight()
  psShrinkSource()
  psStripComments()

mail
  psMailSimple()

math
  psCheckSum()
  psWhatPercent()

mobile
  psIsMobileBrowser()

script
  psScriptWrite()

string
  psStrAlphaOnly()
  psStrBeginsWith()
  psStrBeginsWithi()
  psStrClean()
  psStrContains()
  psStrContainsi()
  psStrEndsWith()
  psStrEndsWithi()
  psHumanSize()
  psMoneySimple()
  psStrNumOnly()
  psQueryStr()
  psStrRemove()
  psSanitizePath()
  psTrimAry()
  psUnderscore()
  psValidEmail()

time
  psDateFuture()
  psDateMonths()
  psDatePast()
  psDateInRange()
  psDate()
  psMicroTime()
  psTime12()
  psTime12d()
  psDayFromDate()
  psDayFromDateLong()
  psDayFromDateNum()

Hi,
Welcome to PHP Salt.

First, why Salt? Simple, when cooking, you add a dash of Salt, hence PHP Salt.

I always seam to find myself writing the same code over and over pulling things from my code base here and there, so I wanted to simplify this, and create 1 php include file that has what I use on almost every single project.

This is nothing special, just a nice collection of php code I wanted to share with everyone.


Enjoy,
-Michael Bradley