Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Test gmdate() function : usage variation - Passing Week representation to format...

Decoded Output download

*** Testing gmdate() : usage variation ***

Did this file decode correctly?

Original Code

--TEST--
Test gmdate() function : usage variation - Passing Week representation to format.
--FILE--
<?php
echo "*** Testing gmdate() : usage variation ***\n";

// Initialise all required variables
date_default_timezone_set('UTC');
$timestamp = mktime(8, 8, 8, 8, 8, 2008);

echo "\n-- Testing gmdate() function with ISO-8601 week number of year format --\n";
var_dump( gmdate('W') );
var_dump( gmdate('W', $timestamp) );

?>
--EXPECTF--
*** Testing gmdate() : usage variation ***

-- Testing gmdate() function with ISO-8601 week number of year format --
string(%d) "%d"
string(2) "32"

Function Calls

date_default_timezone_set 1

Variables

None

Stats

MD5 09c7cd556b2f3177c976fdd28d706a52
Eval Count 0
Decode Time 65 ms