“php ucfirst wszystkie słowa” Kod odpowiedzi

php ucfirst wszystkie słowa

$foo = 'hello world!';
$foo = ucwords($foo);             // Hello World!

$bar = 'HELLO WORLD!';
$bar = ucwords($bar);             // HELLO WORLD!
$bar = ucwords(strtolower($bar)); // Hello World!

//With custom delimiter
$foo = 'hello|world!';
$bar = ucwords($foo);             // Hello|world!

$baz = ucwords($foo, "|"); 
Matteoweb

ucfirst () php


<?php
$foo = 'hello world!';
$foo = ucfirst($foo);             // Hello world!

$bar = 'HELLO WORLD!';
$bar = ucfirst($bar);             // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>
// string manipulation function 
Ramsey1120

PHP Ofperase każde słowo

$upperCaseSentance=ucwords("i do not feel good");//I Do Not Feel Good
Grepper

Znaczenie ucfirst w PHP

$foo = 'hello world!';
$foo = ucfirst($foo);             // Hello world!
Gleaming Goosander

Odpowiedzi podobne do “php ucfirst wszystkie słowa”

Pytania podobne do “php ucfirst wszystkie słowa”

Więcej pokrewnych odpowiedzi na “php ucfirst wszystkie słowa” w PHP

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu