Created
October 2, 2014 17:28
-
-
Save rodrigoea/5cedebdc9e0ffb928b21 to your computer and use it in GitHub Desktop.
Show current date in PHP (Portuguese)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class myDate{ | |
var $myDate; | |
function theDate () | |
{ | |
setlocale (LC_ALL, 'pt_BR'); | |
$this->myDate = strftime ("%A, %d de %B de %Y"); | |
return $this->myDate; | |
} | |
} | |
$showDate = new myDate; | |
echo $showDate->theDate(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment