Sunday , 25 August 2019
Breaking News
Home > Tutorials (page 3)

Tutorials

Add or Subtract Days from Current Date in Php

T oday I am going to¬†tech you that how to add or subtract days from current date in php. I often use this code for getting my required date. So let’s start. Look at below code:- [crayon-5d62243731a47991642457/] Add you can see we used two functions date() and strtotime(), in date() function we have supplied format for date and in strtotime ... Read More »

How to Check Numeric Value in PHP

isnumeric

P hp provides very simple built-in function for checking where given value is numeric or not. I personally often check the value before entering it into database for exact data. Just copy below code and paste wherever you want and test it. [crayon-5d622437367c4997833305/] Above code will check the value stored in variable and show us result. If the value is ... Read More »

Read and Write Text File with PHP

Read and Write with Php

This is very common tutorial but peoples who are new in PHP don’t know about PHP file handling functions.¬†Writing on text file and reading back from text file is not difficult task Php provides very good functions for this purpose. I tried my best to make my code simple so let’s start. We will create two functions Write_on_file($file, $message) Read_from_file($file) ... Read More »

Ad Test