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

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Faker\Provider\tr_TR; class DateTime extends \Faker\Provider\DateTime { ..

Decoded Output download

<?php

namespace Faker\Provider	r_TR;

class DateTime extends \Faker\Provider\DateTime
{
    public static function amPm($max = 'now')
    {
        return static::dateTime($max)->format('a') === 'am' ? '' : 's';
    }

    public static function dayOfWeek($max = 'now')
    {
        $map = array(
            'Sunday' => 'Pazar',
            'Monday' => 'Pazartesi',
            'Tuesday' => 'Sal',
            'Wednesday' => 'aramba',
            'Thursday' => 'Perembe',
            'Friday' => 'Cuma',
            'Saturday' => 'Cumartesi',
        );
        $week = static::dateTime($max)->format('l');
        return isset($map[$week]) ? $map[$week] : $week;
    }

    public static function monthName($max = 'now')
    {
        $map = array(
            'January' => 'Ocak',
            'February' => 'ubat',
            'March' => 'Mart',
            'April' => 'Nisan',
            'May' => 'Mays',
            'June' => 'Haziran',
            'July' => 'Temmuz',
            'August' => 'Austos',
            'September' => 'Eyll',
            'October' => 'Ekim',
            'November' => 'Kasm',
            'December' => 'Aralk',
        );
        $month = static::dateTime($max)->format('F');
        return isset($map[$month]) ? $map[$month] : $month;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Faker\Provider\tr_TR;

class DateTime extends \Faker\Provider\DateTime
{
    public static function amPm($max = 'now')
    {
        return static::dateTime($max)->format('a') === 'am' ? '' : 's';
    }

    public static function dayOfWeek($max = 'now')
    {
        $map = array(
            'Sunday' => 'Pazar',
            'Monday' => 'Pazartesi',
            'Tuesday' => 'Sal',
            'Wednesday' => 'aramba',
            'Thursday' => 'Perembe',
            'Friday' => 'Cuma',
            'Saturday' => 'Cumartesi',
        );
        $week = static::dateTime($max)->format('l');
        return isset($map[$week]) ? $map[$week] : $week;
    }

    public static function monthName($max = 'now')
    {
        $map = array(
            'January' => 'Ocak',
            'February' => 'ubat',
            'March' => 'Mart',
            'April' => 'Nisan',
            'May' => 'Mays',
            'June' => 'Haziran',
            'July' => 'Temmuz',
            'August' => 'Austos',
            'September' => 'Eyll',
            'October' => 'Ekim',
            'November' => 'Kasm',
            'December' => 'Aralk',
        );
        $month = static::dateTime($max)->format('F');
        return isset($map[$month]) ? $map[$month] : $month;
    }
}

Function Calls

None

Variables

None

Stats

MD5 68a6a9455fce8710401cadf0dfbab481
Eval Count 0
Decode Time 135 ms