Search
 
SCRIPT & CODE EXAMPLE
 

PHP

automatic years php

&copy; <?php echo date("Y"); ?>
Comment

automatic years php

&copy; 2008-<?php echo date("Y"); ?> // 2008-20??
Comment

automatic years php

<?php function auto_copyright($year = 'auto'){ ?>
   <?php if(intval($year) == 'auto'){ $year = date('Y'); } ?>
   <?php if(intval($year) == date('Y')){ echo intval($year); } ?>
   <?php if(intval($year) < date('Y')){ echo intval($year) . ' - ' . date('Y'); } ?>
   <?php if(intval($year) > date('Y')){ echo date('Y'); } ?>
<?php } ?> 
  
<?php auto_copyright(); // 2011?>

<?php auto_copyright("2010");  // 2010 - 2017 ?>
Comment

PREVIOUS NEXT
Code Example
Php :: laravel catch exception ex log save 
Php :: laravel failed jobs retry 
Php :: rout debug symfony command 
Php :: php array unique array to string conversion 
Php :: php file_get_contents follow redirect 
Php :: validation file laravel 
Php :: store image in public folder laravel 8 
Php :: how to find php.ini 
Php :: laravel firstorfail 
Php :: show all terms of a custom taxonomy 
Php :: wordpress loop permalink 
Php :: composer install ignore platform reqs 
Php :: carbon start of week minus one day 
Php :: php routing htaccess 
Php :: phpexcel set font color 
Php :: enablequerylog laravel 
Php :: php document root 
Php :: laravel blade for loop 
Php :: install zip php extension 
Php :: wordpress get post id 
Php :: php timezone asia dhaka 
Php :: laravel foreach loop index 
Php :: check if a string contains a substring php 
Php :: php delete session 
Php :: php difference between two dates in years months and days 
Php :: php json key value loop 
Php :: install php7.4 in linux server 
Php :: base64 decode in php 
Php :: php get size of file 
Php :: E: Unable to locate package php7.2-mbstring 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =