/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#Example: #Power by nicolaspar 2007 - especific proyect function get_date_spanish( $time, $part = false, $formatDate = '' ){ #Declare n compatible arrays $month = array("","enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiempre", "diciembre");#n $month_execute = "n"; #format for array month $month_mini_execute = "n"; #format for array month $day_execute = "w"; $day_mini_execute = "w"; /* Other examples: Whether it's a leap year $leapyear = array("Este año febrero tendrá 28 dÃas"."Si, estamos en un año bisiesto, un dÃa más para trabajar!"); #l $leapyear_execute = "L"; */ #Content array exception print "HOY", position content the name array. Duplicate value and key for optimization in comparative if( $part === false ){ }elseif( $part === true ){ }else{ } }