What are the most surprisingly useful PHP functions?

Amazing:


These two functions alone are worth using PHP. In fact, I often download them from http://phpjs.org/ so that I can use them in my JavaScript-heavy apps (especially useful in Node.JS).

I’m also a huge fan of (just like pretty much everyone else):

  • print_r()
  • var_dump()
  • json_decode() and json_encode()
  • isset()
  • empty()
  • number_format()
  • ucfirst() and ucwords()
  • base64_decode() and base64_encode()
  • mail()

 

 

Leave a comment