MCQ practice | Free learning platform

Categories

Posted on 24 Dec, 2020 12:18 pm, category: Web Apps Development |

Switch Statements of Laravel-8.x

Switch statements can be constructed

using the @switch, @case, @break, @default and @endswitch directives:

@switch($i)
    @case(1)
        First case...
        @break

    @case(2)
        Second case...
        @break

    @default
        Default case...
@endswitch


 


Copy Link to Share:
https://www.mcqpractice.com/auth/index.php?page=../proverbs/article-details.php&id=71&t=Switch-Statements-of-Laravel-8.x

Posted on 24 Dec, 2020 12:18 pm, Category:

Switch Statements of Laravel-8.x

Switch statements can be constructed

using the @switch, @case, @break, @default and @endswitch directives:

@switch($i)
    @case(1)
        First case...
        @break

    @case(2)
        Second case...
        @break

    @default
        Default case...
@endswitch


 


More articles you may like







© 2018-2024 Privacy Policy  
        FAQ | Help | Contact