All Posts tagged : "code snippet"

Post image for Dealing with Environment variable in PHP

Dealing with Environment variable in PHP

Environment variables is the array of the values related to environment in which your application is running, just like OS, Computer Name, etc. PHP has provided few functions to deal with these variables. I mean we can add, remove variables from default values.

Post image for Get Random Post in WordPress

Get Random Post in WordPress

Here is the quick code snippet to get the random post from wordpress database. This can be usefult if you create “Random Post” link in your website and get random post for your readers. I will get this done very quick here with just code block. I will explain the same task with two different […]