Answers for "php 8 strtoupper"

PHP
5

strtoupper in php

<?php
/* There is a function in php wich convert all string to uppercase */

  echo strtoupper("Hello samy! how are u ?"); 

// output :   HELLO SAMY! HOW ARE U ?
?>
Posted by: Guest on June-23-2020
2

strtoupper php

setlocale(LC_CTYPE, 'de_DE.UTF8');

// be noted
echo strtoupper('Umlaute äöü in uppercase'); // outputs "UMLAUTE äöü IN UPPERCASE"
echo mb_strtoupper('Umlaute äöü in uppercase', 'UTF-8'); // outputs "UMLAUTE ÄÖÜ IN UPPERCASE"
Posted by: Guest on November-05-2021

Browse Popular Code Answers by Language