
Search In
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] =&
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
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
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
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
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
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
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
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
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
