Posts

Showing posts from November, 2017

Tips in PHP

Image
You may have face lot of issues when using pure php to develop your web application.This article will give you some of the issues you get. Issue 1 : Breaking the date into date,month and day separately. You can split your date into date,month and day separately by using the following code. $current_date="2017-08-27"; list($year,$month,$day) = explode('-', $current_date); In here the date will be broken and assigned to $year,$month and $day separately from "-" sign.Here you have to make sure to give the correct format relevant with variables. Similarly you can break any other strings and assigned to separate variables using this method. To be Continue