Skip to content

Instantly share code, notes, and snippets.

@Mahno74
Created August 30, 2021 10:57
Show Gist options
  • Save Mahno74/889dda78ae1479fbf12fbb5f44e52933 to your computer and use it in GitHub Desktop.
Save Mahno74/889dda78ae1479fbf12fbb5f44e52933 to your computer and use it in GitHub Desktop.
Переводит первую букву каждого слова в верхний регистр
<?php
$sl=mb_convert_case("переводит первую букву каждого слова в верхний регистр", MB_CASE_TITLE, "UTF-8");
$sl=mb_convert_case("переводит все буквы каждого слова в верхний регистр", MB_CASE_UPPER, "UTF-8");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment