app/Http/Controllers/testLeapController.php
/**
     * Get array created in isLeapDate with YYYY,dd,mm
     * @param array $aDayName
     * @return array $aDayName day name in two languages
     */
Get array created in isLeapDate with YYYY,dd,mm
@param array $aDayName
@return array $aDayName day name in two languages
Get array created in isLeapDate with YYYY dd mm @param array $aDayName @return array $aDayName day name in two languages
public function aDaytwoLanguages($valores){
        setlocale(LC_TIME, 'Spanish');
        $dt = Carbon::create($valores[2], $valores[1], $valores[0], 00, 00, 00);
        Carbon::setUtf8(true);
        $aDayName[0] = $dt->formatLocalized('%A');
        setlocale(LC_TIME, 'Catalan');
        $dt = Carbon::create($valores[2], $valores[1], $valores[0], 00, 00, 00);
        $aDayName[1] = $dt->formatLocalized('%A');
        return array($aDayName);
    }
public function aDaytwoLanguages ( $ valores ) { setlocale ( LC_TIME , 'Spanish' ) ; $ dt = Carbon :: create ( $ valores [ 2 ] , $ valores [ 1 ] , $ valores [ 0 ] , 00 , 00 , 00 ) ; Carbon :: setUtf8 ( true ) ; $ aDayName [ 0 ] = $ dt -> formatLocalized ( '%A' ) ; setlocale ( LC_TIME , 'Catalan' ) ; $ dt = Carbon :: create ( $ valores [ 2 ] , $ valores [ 1 ] , $ valores [ 0 ] , 00 , 00 , 00 ) ; $ aDayName [ 1 ] = $ dt -> formatLocalized ( '%A' ) ; return array ( $ aDayName ) ; }
Get array created in isLeapDate with YYYY,dd,mm
 @param array $aDayName
 @return array $aDayName day name in two languages
Get array created in isLeapDate with YYYY dd mm @param array $aDayName @return array $aDayName day name in two languages