Created
July 14, 2012 02:23
-
-
Save jrvaja/3108860 to your computer and use it in GitHub Desktop.
Jeff: PrintF-Sscanf
This file contains 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
/* | |
printf | |
sprintf | |
sscanf | |
*/ | |
// printf("This post was made on %s %s, %d", 'June', '7th', '2012'); | |
//$posted = sprintf("This post was made on %s %s, %d", 'June', '7th', '2012'); | |
//echo $posted; | |
//list($month, $day, $year) = sscanf("June 7th, 2012", "%s %[^,], %d"); | |
//sscanf("June 7th, 2012", "%s %[^,], %d", $month, $day, $year); | |
//echo $year; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment