PHP code example of netkod-bilisim / tr-string
1. Go to this page and download the library: Download netkod-bilisim/tr-string library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
netkod-bilisim / tr-string example snippets
# Make a string uppercase
dd( tr_strtoupper('Pijamalı hasta yağız şoföre çabucak güvendi.') );
# Result: PİJAMALI HASTA YAĞIZ ŞOFÖRE ÇABUCAK GÜVENDİ.
# Make a string lowercase
dd( tr_strtolower('PİJAMALI HASTA YAĞIZ ŞOFÖRE ÇABUCAK GÜVENDİ.') );
# Result: pijamalı hasta yağız şoföre çabucak güvendi.
# Make a string's first character uppercase
dd( tr_uppercase_first('pijamalı hasta yağız şoföre çabucak güvendi.') );
# Result: Pijamalı hasta yağız şoföre çabucak güvendi.
# Make a string's first character lowercase
dd( tr_lowercase_first('Pijamalı hasta yağız şoföre çabucak güvendi.') );
# Result: pijamalı hasta yağız şoföre çabucak güvendi.
# Uppercase the first character of each word in a string
dd( tr_ucwords('Pijamalı hasta yağız şoföre çabucak güvendi.') );
# Result: Pijamalı Hasta Yağız Şoföre Çabucak Güvendi.