Skip to content Skip to footer navigation
🏰 Statamic Summit 2027 Feb 16–19 Talks, workshops, and three nights in a German castle. Get Tickets

Swap Case Modifier

Returns a case swapped version of the string.

string: IpHONE
{{ string | swap_case }}
{{ Statamic::modify($string)->swapCase() }}
iPhone