
Search In
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
Hello Reader's ,
While building any appication we definatley requires images to upload like profile image , company image etc , for this we require php file upload code .
You will get image data in array i.e. image name , temp name , image size ,
Hello Friends,
Some time we need some functionality before execution of our controller function or after execution of controller. For example you need to check a user is login or not before execution of any controller. Codeigniter hook is a very goo
Hi if you want to upload two separate files from one single form to be uploaded and with a for simplest code
Look at mine code.
The form will have two separate input files but you need to name them common, ex 'files[]' I'm using 'upload[]' in this c
Many times we needs to write static query in Laravel. Some time due to the complexity of the query or sometime due to the MYSQL build in functions not supported in the Query Builder or in Eloquent in Laravel example LPAD. Thus at that time Laravel pr
To know what is a cookie and about the optional parameters for the cookie see click the link below.
http://findnerd.com/list/view/What-is-a-cookie/13459/
Here we will see how to create a cookie and modify the cookie and how the cookie expires.Fo
Hello friends,
This time I am here to explain a very common issue in php which if is someone want to exchange the array keys with values, for this you can use a predefined php array function "array_flip ( array $array )". array_flip ( $array ) used
searchform.php is an important template file that is why it is included many a time in the sidebar of many themes and generates the search box form. If this template is not in your theme, you can copy the below code and include it in your theme.
&l
Hello Readers!
You might have heard these "echo" and "print" statement in PHP many times. So here we will understand now what is the exact difference of these two words.
Both echo and print are used to output a statement. Below are the some basic d
Hello Reader's! If you have the time stamp in unix time and you need to convert them into Date time format
Then you can use the diffrent ways of doing this in PHP
Let's say the example below:-
$timestamp=1455070324;
echo gmdate("Y-m-d\TH:i:s\Z", $
