Safe set of allowed HTML tags & attributes There are various approaches to providing a suitable $allowed_html parameter, but the method that I find to be the most sane and flexible is to pass my own custom-built array. To make things easier, I package my set of allowed HTML tags and attributes in the following convenient function:

WordPress: WordPress Basic Allowed HTML for wp_ksesRead More »

Get actual date in PHP- To get the actual date also known as today’s date use the date() function that returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given.

Convert hexadecimal to binary in PHP- The bindec function returns the decimal equivalent of the binary number represented by the argument. It converts a binary number to an int or, if needed for size reasons, float.

Convert Hexadecimal to decimal in PHP- The hexdec() function returns the decimal equivalent of the hexadecimal number represented by the string type argument. hexdec() converts a hexadecimal string to a decimal number. Code to Convert hexadecimal to decimal in PHP-

Add minutes to date time PHP- Adding any minutes to a given time is very similar to adding any days to a given date. You only need to use the specific DateInterval format string. Code to add minutes to date time in PHP-

Automatic Copyright Year PHP- You can add the following codes so that you do not need to change the Copyright Year every time. just use these Automatic Copyright Year PHP codes. Code for Current year only With start year Code Code for Start date with error protection