Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

How to sort an given array by it's any key index

Hello Reader's! if you have an given array on with you want to sort with any selected key index as show below:- Array ( [0] => Array ( [configuration_id] => 10 [id] =&

PHP: How to cache images in browser using php?

When there are multiple images loaded on the page, this may cause page to load slower. In order to increase the speed of the page we need to cache the images via .htaccess or php code. Now I am writing down the php code that will store images in cach

Session

To make the data accessible across the website we need to use session. Session create a temporary file on the server where the registered data is stored and the data is made available to all pages. The location of the temporary file is determined b

How to fetch Post in Wordpress

Hello Friends, If you are new in Wordpress and looking to fetch any specific post data. Please review the code below:: //Here we are going to fetch post named Vacancy. $args = array('post_type' => 'Vacancy'); $loop = ne

How to get selected number of indexes/key from a array

If you need to get some limited key values of an array then you can use function array_slice used in PHP Let see the example I'm having an array of 400+ values $exp = array("34", "45", "45", "554", "2".......); Now I'm limiting my this $exp arra

Laravel Errors & Logging

Error logging handler is defined or registered in the app/start/global.php. We will define or configure logger to use a single log. In laravel we have MONOLOGY logging library. By using Monolog offers we will use n number of handlers. Example $log

How can we find the number of days between given two dates on php 5.3 and above

Hi if you are using php version 5.3 or greater then some functions are really very quick to write and use. In this blog I am calculating the days between your given two dates. This is by far the most accurate way of calculating the difference: This

md5 function in PHP

The md5 function in PHP is used to hash or encrypt a string by calculating the md5 . The syntax is: md5 ('string', raw) The string here is passed to encrypt the string and the raw is an optional field,which is the format of output.It uses the RS

Truncate a given sting just after a fixed count of chars using PHP

Hello Reader's! if you want to short a given string on fixed number of chars then php offers you many ways. Below is one of them, you can use this code for the same. Lets see the example below:- $sting_given = "1234567890134667896abcdtiABCDEFGHIJK

How to use strtotime() Function in PHP ?

The strtotime() function parses an English textual datetime into a Unix timestamps (the number of seconds since January 1 1970 00:00:00 GMT). Syntax of strtotime() Function strtotime(time,now); you can see belloe example: <?php //here call

1 16 39
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: