A String is simply a sequence of characters like ‘THIS IS PHP!’. PHP contains a huge variety of string functions. The PHP string functions basically is an important part of the PHP Core. PHP contains near about one hundred string ...
Home/PHP Functions
phpsupport | phpsupportdesk Latest Articles
Time Functions
pHpSupportStrtotime It converts the date into unix time stamp format. <?php echo $dateTime=strtotime(“13-02-2016”); ?> OUTPUT To add no. of days in current date <?php $currDate = date(‘Y-m-d’) ; // 2016-04-02 $dateTime=strtotime(“$currDate + 5 days”); echo date(“Y-m-d”, $dateTime); ?> OUTPUT You ...