You are here


How to get one decimal place in PHP

To get the one decial place in php can be achieved by using the round function.

To get the round value in php


To get one decimal place


To get two decimal places in php


How to get timestamp before one week from now in PHP

You can get the timestamp value for before seven days from a certain date by substracting the timestamp.

Lets suppose you want to find out the timestamp for seven days before 27th or some other date. We have to substract the timestamp that counts seven days from the timestamp of the date from where we want to find out the result.


$before_seven_day = $date_timestamp - (7 * 24 * 60 * 60);

// $date_timestamp is the date from where you found to find out the timestamp.


Website fix request form

If you have problems with the website based on Drupal or WordPress, please feel free to contact us: